:root {
  color-scheme: light;
  --black: #101114;
  --muted: #666a73;
  --line: #dadde3;
  --red: #ce1126;
  --blue: #003da5;
  --paper: #f6f7f8;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: #fff;
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.customizer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 90px) 0;
}

.intro { max-width: 720px; margin-bottom: 36px; }
.brand, .section-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.brand { color: var(--blue); }
.section-label { color: #777b84; }
.intro h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.intro > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.preview-column, .controls-column { padding: clamp(24px, 4vw, 52px); }
.preview-column { background: var(--paper); border-right: 1px solid var(--line); }
.controls-column { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.controls-column h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.03; letter-spacing: -0.035em; text-transform: uppercase; }
.helper { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
.controls-column label { margin-top: 8px; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.mirror-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  padding: 82px 20px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgb(255 255 255 / 88%), transparent 47%),
    linear-gradient(150deg, #e8ebee, #cfd5da 58%, #b5bec5);
}
.mirror-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 48%, rgb(255 255 255 / 18%) 48.5% 52%, transparent 52.5%);
  pointer-events: none;
}
.mirror-bar {
  position: absolute;
  z-index: 0;
  top: 20px;
  left: 50%;
  width: 62%;
  height: 32px;
  transform: translateX(-50%);
  border-radius: 0 0 22px 22px;
  background: #101114;
  box-shadow: 0 8px 16px rgb(0 0 0 / 24%);
}
.cord {
  position: absolute;
  z-index: 1;
  top: 40px;
  width: 5px;
  height: 70px;
  background: repeating-linear-gradient(135deg, #050505 0 3px, #333 3px 5px);
  border-radius: 999px;
}
.cord-left { left: calc(50% - 11px); transform: rotate(8deg); }
.cord-right { left: calc(50% + 6px); transform: rotate(-8deg); }

.plate-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  padding-top: 10.7%;
  filter: drop-shadow(0 20px 15px rgb(0 0 0 / 24%));
}
.plate {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 2.2 / 1;
  overflow: hidden;
  border-radius: 4.2% / 10%;
  background:
    repeating-linear-gradient(135deg, rgb(0 0 0 / 0.025) 0 1px, transparent 1px 4px),
    #fafafa;
  box-shadow: inset 0 0 0 1px #fff, 0 5px 0 #aeb4ba;
}
.eyelet {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 12.2%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #111317;
  box-shadow: 0 5px 0 #090a0b;
}
.eyelet::after {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -19%;
  height: 55%;
  border-radius: 60% 60% 15% 15%;
  background: #111317;
}
.eyelet span {
  position: absolute;
  z-index: 1;
  inset: 28%;
  border-radius: 50%;
  background: #cfd5da;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 65%);
}
.plate-border { position: absolute; inset: 2.2%; border: max(3px, .6cqw) solid #111317; border-radius: 4.5% / 10%; }
.accent { position: absolute; width: 12.8%; height: 4.8%; border-radius: 999px; box-shadow: inset 0 -1px rgb(0 0 0 / 20%), 0 1px 1px rgb(0 0 0 / 18%); }
.top-left { left: 6.2%; top: 11%; }
.top-right { right: 6.2%; top: 11%; }
.bottom-left { left: 6.2%; bottom: 9.2%; }
.bottom-right { right: 6.2%; bottom: 9.2%; }
.red { background: var(--red); }
.blue { background: var(--blue); }
.country {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #15171a;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .11em;
  text-shadow: 0 .45cqw .25cqw rgb(0 0 0 / 18%);
  white-space: nowrap;
}
.country-top { top: 7.8%; font-size: 5.7cqw; }
.country-bottom { bottom: 5.2%; font-size: 5.8cqw; letter-spacing: .09em; }
.rd-logo { position: absolute; left: 4.7%; top: 26%; width: 18%; height: 51%; object-fit: contain; filter: drop-shadow(0 .4cqw .25cqw rgb(0 0 0 / 22%)); }
.custom-name {
  position: absolute;
  left: 25%;
  right: 4.5%;
  top: 27%;
  height: 48%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #111317;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: var(--name-size, 12.8cqw);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.025em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 .65cqw .25cqw rgb(0 0 0 / 22%);
}
.size-note { margin: 16px 0 0; color: #666a73; font-size: 0.85rem; text-align: center; }

.input-shell { display: flex; align-items: center; border-bottom: 2px solid var(--black); }
.input-shell:focus-within { border-color: var(--blue); }
.input-shell input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 0;
  color: var(--black);
  background: transparent;
  font-size: var(--input-size, 2.1rem);
  font-weight: 900;
  text-transform: uppercase;
}
.input-shell span { flex: none; margin-left: 12px; color: #777b84; font-size: 0.88rem; }
.input-note { margin: -10px 0 0; color: #777b84; font-size: 0.82rem; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.examples button {
  border: 1px solid #c9cdd4;
  border-radius: 999px;
  padding: 8px 11px;
  color: #32353a;
  background: #fff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.examples button:hover, .examples button:focus-visible { border-color: var(--blue); color: var(--blue); outline: 0; }
.preview-note { display: flex; align-items: center; gap: 14px; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 18px; }
.preview-note p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.swatches { display: flex; flex: none; }
.swatches i { width: 16px; height: 16px; border: 1px solid #b9bdc4; border-radius: 50%; margin-left: -3px; background: #fff; }
.swatches i:nth-child(2) { background: #111; }
.swatches i:nth-child(3) { background: var(--red); }
.swatches i:nth-child(4) { background: var(--blue); }

@media (max-width: 850px) {
  .customizer { width: min(100% - 20px, 680px); padding: 34px 0; }
  .intro { margin-bottom: 24px; }
  .workspace { grid-template-columns: 1fr; }
  .preview-column { border-right: 0; border-bottom: 1px solid var(--line); }
  .mirror-stage { min-height: 315px; padding-inline: 12px; }
  .controls-column { gap: 16px; }
}

@media (max-width: 480px) {
  .customizer { width: 100%; padding: 26px 0 0; }
  .intro { padding: 0 18px; }
  .workspace { border-inline: 0; }
  .preview-column, .controls-column { padding: 22px 18px; }
  .mirror-stage { min-height: 260px; padding-top: 72px; }
  .mirror-bar { width: 74%; }
  .examples button { padding: 7px 9px; }
}

@media (prefers-reduced-motion: no-preference) {
  .plate-wrap { animation: settle .55s ease-out both; }
  @keyframes settle { from { opacity: 0; transform: translateY(-8px) rotate(-1deg); } to { opacity: 1; transform: none; } }
}
