/* =========================
   Root Variables
========================= */
:root {
  --green: #056b3b;
  --green2: #064f31;
  --cream: #fff9e7;
  --pink: #ff087b;
  --yellow: #ffd719;
  --ink: #17362a;
}

/* =========================
   Global Reset & Base
========================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--green);
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* =========================
   Typography & Inputs
========================= */
label, .field > span {
  display: block;
  font-family: "DM Mono";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
input {
  width: 100%;
  margin-top: 9px;
  border: 0;
  border-bottom: 2px solid rgba(255,255,255,.45);
  background: transparent;
  color: white;
  padding: 13px 2px;
  font-size: 18px;
  outline: none;
}
input::placeholder { color: rgba(255,255,255,.45); }
input:focus { border-color: var(--yellow); }

/* =========================
   Navigation
========================= */
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.brand {
  font-weight: 800;
  letter-spacing: -1px;
  font-size: 20px;
}
.brand span { color: var(--yellow); }

/* =========================
   Buttons
========================= */
.ghost-btn, .text-btn {
  background: none;
  border: 0;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: .05em;
}
.ghost-btn {
  border: 1px solid rgba(255,255,255,.5);
  padding: 11px 17px;
  border-radius: 999px;
}
.primary-btn, .secondary-btn {
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  font-weight: 800;
  letter-spacing: .03em;
}
.primary-btn {
  background: var(--pink);
  color: white;
  box-shadow: 5px 6px 0 var(--green2);
}
.primary-btn span { margin-left: 20px; }
.secondary-btn {
  background: var(--cream);
  color: var(--green);
}

/* =========================
   Hero Section
========================= */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.eyebrow {
  font-family: "DM Mono", monospace;
  color: var(--pink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 100px);
  line-height: .9;
  letter-spacing: -.065em;
  margin: 0;
  max-width: 1000px;
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}
.hero-copy {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  opacity: .85;
  margin: 28px 0;
}
.sun {
  position: absolute;
  right: 8%;
  top: 13%;
  font-size: 60px;
  color: var(--yellow);
  transform: rotate(20deg);
}
.floating {
  position: absolute;
  font-size: 120px;
  color: rgba(255,215,25,.16);
}
.palm-a {
  left: 2%;
  bottom: 7%;
  transform: rotate(-20deg);
}
.palm-b {
  right: 3%;
  bottom: 14%;
  transform: rotate(25deg);
}

/* =========================
   Sections
========================= */
main {
  max-width: 1250px;
  margin: auto;
  padding: 0 24px;
}
.generator, .team { padding: 60px 0 100px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 34px;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: .95;
  margin: 0;
  letter-spacing: -.05em;
}

/* =========================
   Workspace & Controls
========================= */
.workspace {
  display: grid;
  grid-template-columns: minmax(300px,1fr) minmax(340px,520px);
  gap: 55px;
  align-items: start;
}
.controls {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.upload-box {
  background: var(--cream);
  color: var(--ink);
  border: 2px dashed var(--pink);
  border-radius: 24px;
  padding: 30px;
  text-align: center;
}
.upload-icon {
  font-size: 34px;
  color: var(--pink);
  font-weight: 800;
}
.upload-box h3 { margin: 4px 0; font-size: 24px; }
.upload-box p { margin: 4px 0 10px; opacity: .65; }
.upload-box small { font-family: "DM Mono"; opacity: .5; }
.upload-box .secondary-btn { margin-top: 18px; }

/* =========================
   Chips & Inputs
========================= */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chips button {
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  background: transparent;
  color: white;
  padding: 8px 13px;
}
.chips button.active {
  background: var(--yellow);
  color: var(--green);
  border-color: var(--yellow);
  font-weight: 800;
}
.class-row {
  display: flex;
  gap: 8px;
}
.class-row input { flex: 1; }
.dice {
  margin-top: 9px;
  width: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--green);
  font-size: 24px;
}
.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* =========================
   Preview Area
========================= */
.preview-area { position: sticky; top: 25px; }
.preview-label {
  font-family: "DM Mono";
  font-size: 11px;
  letter-spacing: .15em;
  margin-bottom: 12px;
  opacity: .7;
}
.canvas-wrap {
  width: min(100%,480px);
  margin: auto;
  position: relative;
  background: var(--cream);
  box-shadow: 12px 14px 0 var(--green2);
  border-radius: 18px;
  overflow: hidden;
}
canvas {
  width: 100%;
  height: auto;
  display: block;
}
.empty-preview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-weight: 800;
  letter-spacing: .1em;
}
.empty-preview small {
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 8px;
}

/* =========================
   Team Section
========================= */
.team-copy {
  opacity: .8;
  margin-top: -20px;
  margin-bottom: 28px;
}
.members {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 16px;
}
.member {
  background: var(--cream);
  color: var(--ink);
  padding: 20px;
  border-radius: 18px;
  position: relative;
}
.member h3 { margin: 0 0 12px; }
.member input { color: var(--ink); border-color: #b6c5bc; }
.member .remove {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  background: none;
  color: var(--pink);
  font-weight: 800;
}
.member-photo {
  height: 160px;
  border-radius: 12px;
  background: #e8eadf;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-photo span {
  font-size: 13px;
  opacity: .55;
}
.add-member {
  margin-top: 18px;
  background: transparent;
  color: white;
  border: 1px dashed rgba(255,255,255,.6);
  padding: 15px 20px;
  border-radius: 14px;
  font-weight: 800;
}
.team-actions { margin: 30px 0; }
.team-result {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 35px;
}
.team-canvas-wrap {
  max-width: 850px;
  background: var(--cream);
  box-shadow: 12px 14px 0 var(--green2);
  border-radius: 18px;
  overflow: hidden;
}

/* =========================
   Footer
========================= */
footer {
  text-align: center;
  padding: 25px;
  font-family: "DM Mono";
  font-size: 11px;
  opacity: .6;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* =========================
   Responsive
========================= */
@media(max-width:800px) {
  .nav { height: 64px; }
  .workspace { grid-template-columns: 1fr; gap: 35px; }
  .preview-area { position: static; }
  .canvas-wrap { max-width: 430px; }
  .section-head { align-items: start; }
  .hero h1 { font-size: 52px; }
  .sun { font-size: 40px; right: 5%; top: 8%; }
}
/* =========================
   TEAM NAME
========================= */

.team-name-box {
  max-width: 650px;
  margin: 30px 0 40px;
}

.team-name-box label {
  display: block;
  margin-bottom: 10px;

  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.team-name-box input {
  width: 100%;
  padding: 16px 18px;

  margin: 0;

  background: rgba(255,255,255,.08);

  border: 2px solid rgba(255,255,255,.35);
  border-radius: 14px;

  color: white;

  font-size: 20px;
  font-weight: 600;

  outline: none;
}

.team-name-box input::placeholder {
  color: rgba(255,255,255,.45);
}

.team-name-box input:focus {
  border-color: var(--yellow);
  background: rgba(255,255,255,.12);
}

.members-title {
  margin: 0 0 15px;

  font-family: "DM Mono", monospace;
  font-size: 13px;

  letter-spacing: .12em;
}

.team-preview-title {
  font-family: "DM Mono", monospace;
  font-size: 12px;

  letter-spacing: .15em;

  margin-bottom: 15px;

  opacity: .7;
}