* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #cfcfd1;
  font-family: "Open Sans", sans-serif;
  color: #1b2d47;
}

.canvas {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 10px;
}

.label {
  width: min(800px, 96vmin);
  height: min(800px, 96vmin);
  background: #f2f2f3;
  border: 3px solid #4c4c4c;
  padding: 14px 18px 16px;
  overflow: hidden;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.party-badge {
  width: 150px;
  height: 90px;
  border-radius: 90px;
  border: 2px solid #e2a7c9;
  background: #efb7d8;
  transform: rotate(-22deg);
  padding: 12px 8px 8px;
  margin-top: 2px;
}

.party-badge p {
  margin: 0;
  text-align: center;
  font-family: "Cooper Black", "Bookman Old Style", "Rye", serif;
  color: #fff;
  line-height: 0.95;
  font-size: clamp(12px, 1.9vw, 20px);
}

.warning-box {
  width: 165px;
  border: 3px solid #505050;
  background: #f2f2f3;
  padding: 8px 8px 6px;
  margin-top: 4px;
  margin-right: 6px;
}

.warning-box p {
  margin: 0;
  text-align: center;
  font-style: italic;
  color: #2a3b57;
  line-height: 1.03;
  font-size: clamp(11px, 1.8vw, 20px);
}

.warning-brand {
  margin-top: 8px;
  font-size: clamp(9px, 1.2vw, 13px);
}

.brand {
  margin: -4px 0 0;
  text-align: center;
  font-family: "Cooper Black", "Bookman Old Style", "Rye", serif;
  color: #2f1209;
  font-size: clamp(34px, 6.3vw, 66px);
  line-height: 1;
}

.product {
  margin: -2px 0 0;
  text-align: center;
  font-family: "Cooper Black", "Bookman Old Style", "Baloo 2", serif;
  font-weight: 800;
  color: #ebb3d4;
  text-shadow: -2px -2px 0 #e0a5c8, 2px 2px 0 #e0a5c8;
  font-size: clamp(74px, 13.8vw, 138px);
  line-height: 0.9;
}

.flavor-row {
  margin: 2px 20px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
}

.flavor-row p {
  margin: 0;
  font-family: "Cooper Black", "Bookman Old Style", "Rye", serif;
  color: #2e1208;
  font-size: clamp(13px, 2.2vw, 22px);
  line-height: 1.02;
}

.flavor-row p:first-child {
  grid-column: 2;
  text-align: center;
}

.flavor-row .weight {
  grid-column: 3;
  justify-self: end;
  font-family: "Open Sans", sans-serif;
  font-style: italic;
  color: #2a3b57;
  font-size: clamp(16px, 2.8vw, 28px);
}

.rule {
  height: 3px;
  background: #4b4b4b;
  margin: 9px 20px 0;
}

.bottom-content {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 20px;
  padding: 0 18px;
}

.nutrition-box {
  border: 3px solid #4e4e4e;
  background: #f2f2f3;
  padding: 8px 10px 10px;
}

.nutrition-box h3,
.ingredients-box h3 {
  margin: 0;
  color: #151515;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.03;
}

.nutrition-box h3 {
  font-size: clamp(16px, 2.1vw, 22px);
  white-space: nowrap;
}

.inner-rule {
  height: 3px;
  background: #4d4d4d;
  margin: 7px 0 8px;
}

.nutrition-box p {
  margin: 0;
  font-size: clamp(12px, 2vw, 18px);
  line-height: 1.08;
  color: #151515;
}

.nutrition-box .footnote {
  font-style: italic;
  font-size: clamp(11px, 1.6vw, 16px);
}

.bottom-gap {
  margin-top: 10px;
}

.right-panel {
  display: flex;
  flex-direction: column;
}

.center-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -6px;
}

.share-line {
  margin: 0;
  font-family: "Cooper Black", "Bookman Old Style", "Rye", serif;
  color: #2d1208;
  font-size: clamp(22px, 3.8vw, 36px);
  line-height: 1;
}

.share-fr {
  margin: 8px 0 0;
  font-family: "Baloo 2", cursive;
  font-weight: 800;
  color: #efb7d8;
  text-shadow: -2px -2px 0 #e4a8cb, 2px 2px 0 #e4a8cb;
  font-size: clamp(20px, 3.4vw, 32px);
  line-height: 0.94;
}

.ingredients-box {
  margin-top: 12px;
  border: 3px solid #4e4e4e;
  background: #f2f2f3;
  padding: 8px 9px 9px;
}

.ingredients-box h3 {
  color: #151515;
  font-size: clamp(17px, 2.5vw, 24px);
  line-height: 1.03;
  margin-bottom: 6px;
}

.ingredients-box p {
  margin: 0;
  color: #151515;
  font-size: clamp(10px, 1.55vw, 16px);
  line-height: 1.06;
}

.ingredients-box .warning-text {
  font-weight: 700;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .bottom-content {
    grid-template-columns: 1.16fr 0.84fr;
    gap: 20px;
    padding: 0 14px;
    margin-top: 30px;
  }
}
