/* ========= Resource Directions + Submissions ========= */

/* Container that holds directions + the small submissions preview */
.resource_directions {
  background: radial-gradient(1400px 600px at 0% 0%, #2b2b3b 0%, #191a22 60%, #111218 100%);
  color: #fff;
  padding: clamp(14px, 2.8vw, 28px) 0;
}

/* Centered layout variant */
.resource_directions.centered .rd_center {
  width: min(900px, 92vw);
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 10px;
}
.rd_title {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800;
  margin: 0;
  color: #EDEEF2;
}
.rd_blurb {
  color: #bfc3d9;
  margin: 0 auto;
  max-width: 56ch;
}

/* Legacy two-column wrapper (kept for compatibility) */
.resource_directions .rd_wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(12px, 3vw, 24px);
  align-items: start;
}
.resource_directions .rd_copy h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 .25rem;
  color: #EDEEF2;              /* calmer H1 */
  text-shadow: none;
}
.resource_directions .rd_copy p {
  color: #bfc3d9;
  margin: 0;
}

/* ---- Submissions card (centered) ---- */
.subs_card {
  margin: 8px auto 0;
  width: min(720px, 92vw);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25) inset, 0 10px 26px rgba(0,0,0,.15);
}
.subs_card_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.subs_card_head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .2px;
color: #bfc3d9;
}

/* Badge + actions */
.subs_actions { display: inline-flex; align-items: center; gap: 8px; }
.subs_badge {
  background: #ff3465;
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: .8rem;
  line-height: 1;
  padding: 4px 8px;
}
.subs_badge.hidden { display: none !important; }
.hidden { display: none !important; }

.btn-text.subtle-link {
  border: none;
  background: transparent;
  color: #ffd426;
  font-weight: 800;
  cursor: pointer;
}
.btn-text.subtle-link:hover { text-decoration: underline; }

/* Two-item compact list in center card */
.subs_two {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;x
  gap: 10px;
}
.subs_two li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #24262e;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.subs_two .subs_avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; color: #14151c;
  background: linear-gradient(135deg, #7B61FF, #2CE6FF);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.subs_two .subs_text { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.subs_two .name { font-weight: 900; color: #f3f4f7; }
.subs_two .sep { color: #8f94a8; }
.subs_two .set { color: #e6e8f5; font-weight: 700; }
.subs_two .muted { color: #B7BBC7; font-weight: 600; }
.subs_two .subs_time { color: #9aa1bb; font-weight: 600; font-size: .9rem; }

.subs_empty {
  color: #9aa1bb;
  font-style: italic;
  margin: 8px 2px 0;
}
.subs_empty.hidden { display: none; }

/* ---- Old preview panel (right column) — unchanged for compatibility ---- */
.subs_preview.hidden { display: none !important; }
.subs_preview {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25) inset, 0 10px 26px rgba(0,0,0,.15);
}

.subs_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.subs_titlewrap { display: flex; align-items: center; gap: 8px; }
.subs_title {
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  font-weight: 900;
  letter-spacing: .2px;
  background: linear-gradient(90deg,#ffae00,#ff2da0,#7b61ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn-pill {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: .95rem;
  color: #17181f;
  background: linear-gradient(180deg,#ffef76,#ffd426);
  box-shadow: 0 8px 18px rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.45);
  cursor: pointer;
}
.btn-pill:hover { transform: translateY(-1px); }

/* Reusable row styles (preview & modal) */
.subs_list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 10px;
}
.subs_row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #24262e;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.subs_row.unread { outline: 2px solid rgba(255, 214, 0, .25); }
.subs_left {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.subs_avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; color: #14151c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.subs_text { display: grid; gap: 2px; }
.subs_primary {
  font-weight: 900;
  font-size: 1.05rem;
  color: #f3f4f7;
}
.subs_secondary {
  color: #B7BBC7;
  font-weight: 600;
  font-size: .95rem;
}

/* ---- Full-screen Submissions modal ---- */
.rr-modal .subs_modal_card {
  width: min(900px, 94vw);
  align-items: stretch;
  text-align: left;
  gap: 14px;
  background: linear-gradient(180deg, #1a1b23, #0f1117);
  color: #e9ecff;
  border: 1px solid rgba(255,255,255,.12);
}
.subs_modal_head {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
}
.subs_modal_head h3 {
  margin: 0 auto 0 0;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 900;
  background: linear-gradient(90deg,#ffae00,#ff2da0,#7b61ff);
  -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.btn-ghost.small {
  border: 1px solid rgba(255,255,255,.15);
  color: #e9ecff;
  background: transparent;
  padding: 8px 12px; border-radius: 10px; font-weight: 800;
}

/* "Delete all" button in modal header */
.subs_modal_head .btn-secondary {
  background: linear-gradient(180deg,#ff6b6b,#f43f5e);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}
.subs_modal_head .btn-secondary:hover { filter: brightness(1.05); }

/* Filters */
.subs_filters {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px;
}
.subs_filters label {
  display: grid; gap: 6px; font-weight: 700; color: #cfd3ea; font-size: .9rem;
}
.subs_filters select {
  background: #12131a;
  color: #e9ecff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
}

#subsListFull { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
#subsEmptyFull.hidden { display: none; }

/* Delete buttons in full list */
.subs_btn.subs_btn--delete {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: .5rem .75rem;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
}
.subs_btn.subs_btn--delete:hover {
  background: rgba(255,76,76,0.18);
  border-color: rgba(255,76,76,0.35);
}

/* ===== GAME DESCRIPTION (modern, matches resource_directions) ===== */
.game_description_official {
  /* same vibe as .resource_directions */
  background: radial-gradient(1400px 600px at 0% 0%, #2b2b3b 0%, #191a22 60%, #111218 100%);
  color: #fff;
  padding: clamp(18px, 3.4vw, 40px) 0 clamp(28px, 4vw, 56px);
}

.game_description_official .gd_wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: clamp(14px, 2.6vw, 24px);
}

.gd_head {
  text-align: center;
  display: grid;
  gap: 10px;
}
.gd_title {
  margin: 0;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 900;
  color: #edf0ff;
  letter-spacing: .2px;
}
.gd_lead {
  margin: 0 auto;
  max-width: 880px;
  color: #cbd0e4;
  line-height: 1.6;
}

.gd_panel {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: clamp(14px, 2.4vw, 22px);
  box-shadow:
    inset 0 10px 26px rgba(0,0,0,.18),
    0 10px 26px rgba(0,0,0,.10);
}

.gd_h3 {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 900;
  background: linear-gradient(90deg,#ffae00,#ff2da0,#7b61ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cards (why they love it) */
.gd_cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}
.gd_card {
  background: #232530;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 6px;
  min-height: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.gd_card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #f0f2ff;
}
.gd_card p {
  margin: 0;
  color: #c4c8da;
  line-height: 1.55;
}
.gd_icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg,#ffae00,#ff2da0);
  color: #15161d;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

/* Steps (how to play) */
.gd_steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.gd_steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  background: #20222b;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  color: #d7dbeb;
}
.gd_steps li span {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-weight: 900;
  background: linear-gradient(135deg,#7b61ff,#2ce6ff);
  color: #0f1117;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.gd_steps em { font-style: normal; color: #ffffff; font-weight: 800; }

/* Split section (who + skills) */
.gd_split {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.1fr 1fr;
}
.gd_body { color: #cbd0e4; margin: 0; }

/* Skills chips */
.gd_chips {
  list-style: none;
  margin: 2px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.gd_chips li {
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: .9rem;
  color: #e8ebff;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
}

/* FAQ */
.gd_faq details {
  background: #22242d;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 10px 12px;
  color: #d7dbeb;
}
.gd_faq details + details { margin-top: 10px; }
.gd_faq summary {
  cursor: pointer;
  font-weight: 800;
  color: #f2f4ff;
}
.gd_faq p { margin: 8px 0 0; color: #c7cbe0; }

/* Responsive */
@media (max-width: 1024px) {
  .gd_cards { grid-template-columns: repeat(2,1fr); }
  .gd_split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gd_cards { grid-template-columns: 1fr; }
  .gd_steps li { grid-template-columns: 30px 1fr; }
  .gd_steps li span { width: 30px; height: 30px; }
}


/* Mobile */
@media (max-width: 900px) {
  .resource_directions .rd_wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .subs_filters { grid-template-columns: 1fr; }
}

/* =========================
   RESPONSIVE OVERRIDES
   ========================= */

/* ≤1200px — tighten grids + widths a touch */
@media (max-width: 1200px) {
  .resource_directions .rd_wrap {
    grid-template-columns: 1fr 0.9fr;
    gap: 18px;
    width: min(1050px, 94vw);
  }
  .subs_card { width: min(760px, 94vw); }

  /* Game description panels */
  .game_description_official .gd_wrap { width: min(1050px, 94vw); }
  .gd_cards { grid-template-columns: repeat(3, 1fr); }
}

/* ≤1024px — switch many areas to single column, gentler paddings */
@media (max-width: 1024px) {
  .resource_directions .rd_wrap {
    grid-template-columns: 1fr;
    width: min(900px, 94vw);
  }
  .subs_preview { order: 2; }
  .subs_card { width: min(760px, 96vw); }

  .subs_row { padding: 10px; }
  .subs_avatar { width: 40px; height: 40px; }

  /* Game description */
  .game_description_official .gd_wrap { width: min(900px, 94vw); }
  .gd_cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gd_panel { padding: 16px; }
  .gd_split { grid-template-columns: 1fr; gap: 12px; }
}

/* ≤900px — forms/filters compress; compact spacing */
@media (max-width: 900px) {
  /* You already collapse rd_wrap to 1 col; keep it tight */
  .resource_directions.centered .rd_center { width: min(680px, 94vw); }

  .subs_filters {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .subs_card { width: min(680px, 96vw); }

  .subs_two li {
    padding: 9px 10px;
    gap: 10px;
  }
  .subs_two .subs_avatar { width: 20px; height: 20px; }

  /* Modal max width is fluid via 94vw already */
  .rr-modal .subs_modal_card { width: min(780px, 94vw); }

  /* Game description */
  .gd_steps li {
    grid-template-columns: 32px 1fr;
    padding: 10px 12px;
  }
  .gd_steps li span { width: 32px; height: 32px; }
}

/* ≤768px — thumb-friendly paddings, hide some non-critical text */
@media (max-width: 768px) {
  .rd_title { letter-spacing: .1px; }
  .subs_card { padding: 12px; }
  .subs_card_head { margin-bottom: 8px; }

  .subs_list, .subs_two { gap: 8px; }

  .subs_primary { font-size: 1rem; }
  .subs_secondary { font-size: .9rem; }

  .gd_head { gap: 8px; }
  .gd_lead { max-width: 660px; }
  .gd_cards { gap: 10px; }
  .gd_card { padding: 12px; }
}

/* ≤640px — make chips wrap tighter, simplify row layout */
@media (max-width: 640px) {
  .subs_two li { grid-template-columns: auto 1fr; }
  .subs_two .subs_time { display: none; }

  .subs_left { gap: 10px; }
  .subs_text { gap: 2px; }
  .subs_avatar { width: 36px; height: 36px; }

  .subs_filters { grid-template-columns: 1fr; }

  .gd_chips { gap: 6px; }
  .gd_chips li {
    padding: 6px 10px;
    font-size: .88rem;
  }
}

/* ≤560px — super compact */
@media (max-width: 560px) {
  .resource_directions.centered .rd_center { width: 94vw; }
  .subs_card { width: 96vw; border-radius: 16px; padding: 10px; }

  .btn-pill { padding: 7px 12px; font-size: .9rem; }

  .subs_row { padding: 10px; }
  .subs_primary { font-size: .98rem; }
  .subs_secondary { font-size: .88rem; }

  /* Game description */
  .gd_cards { grid-template-columns: 1fr; }
  .gd_steps li { grid-template-columns: 28px 1fr; }
  .gd_steps li span { width: 28px; height: 28px; border-radius: 8px; }
  .gd_panel { border-radius: 16px; }
}

/* ≤420px — smallest phones; aggressive trimming */
@media (max-width: 420px) {
  .rd_title { font-size: 1.6rem; }
  .subs_two .name { font-weight: 800; }
  .subs_two .sep, .subs_two .muted { display: none; } /* keep only name + set */

  .subs_avatar { width: 32px; height: 32px; }
  .subs_btn.subs_btn--delete { padding: .45rem .65rem; font-size: 13px; }

  .gd_title { font-size: 1.3rem; }
  .gd_icon { width: 36px; height: 36px; }
  .gd_card h4 { font-size: .98rem; }
  .gd_faq details { padding: 9px 10px; }
}
