* { box-sizing: border-box; }
html { background: #151515; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; }
.stage {
  --ramen-price-scale: 1;
  --ramen-text-scale: 1;
  --ramen-logo-scale: 1;
  --extra-text-scale: max(0, calc(var(--ramen-text-scale) - 1));
  container-type: inline-size;
  width: min(100vw, 56.25vh);
  aspect-ratio: 9 / 16;
  background: #fff;
  color: #080808;
  font-family: Unbounded, Arial, sans-serif;
}
.paper { padding: 3.75cqw 8.25cqw 0; }
.block + .block { margin-top: 2.5cqw; }
.block-heading {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 2cqw;
  min-height: 8.1cqw;
}
.block-heading h2 {
  margin: 0;
  font-size: 4.12cqw;
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1.06;
  text-transform: uppercase;
}
.caption {
  color: #a4a4a4;
  font-family: "Malgun Gothic", "Noto Sans CJK KR", Meiryo, sans-serif;
  font-size: 3.65cqw;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.volume {
  align-self: flex-start;
  margin: .35cqw 0 0 auto;
  padding: .65cqw 1.45cqw;
  border-radius: .95cqw;
  background: #e40000;
  color: #fff;
  font-size: 1.9cqw;
  font-weight: 750;
  line-height: 1.14;
  white-space: nowrap;
}
.block-heading.has-tools > .volume {
  position: absolute;
  right: 0;
  top: 5.1cqw;
  margin: 0;
  padding-block: .4cqw;
}
.screen-tools {
  display: flex;
  flex: none;
  align-self: flex-start;
  align-items: center;
  gap: 1.15cqw;
  margin-left: auto;
  min-height: 4.7cqw;
}
.screen-logo {
  width: auto;
  height: calc(3cqw * var(--ramen-logo-scale));
  max-width: calc(10.3cqw * var(--ramen-logo-scale));
  object-fit: contain;
  object-position: right center;
}
.screen-clock { font: 800 2.45cqw/1 Manrope, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-grid {
  --row-height: 36.3cqw;
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  grid-auto-rows: var(--row-height);
  gap: 0 1.6cqw;
  min-height: calc(var(--rows) * var(--row-height));
}
.block[data-columns="3"] .card-grid { --row-height: 35cqw; column-gap: 4.3cqw; }
.block[data-style="tea"] .card-grid { --row-height: 32cqw; }
.card { min-width: 0; }
.art {
  position: relative;
  width: 18.4cqw;
  height: calc(23.8cqw - 20cqw * var(--extra-text-scale));
  display: grid;
  place-items: center start;
  isolation: isolate;
}
.photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}
.price {
  --label-scale: var(--ramen-price-scale);
  display: inline-block;
  padding: calc(.65cqw * var(--label-scale)) calc(1.05cqw * var(--label-scale)) calc(.57cqw * var(--label-scale));
  background: #ffda4b;
  color: #080808;
  font-size: calc(2.78cqw * var(--label-scale));
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.07em;
  white-space: nowrap;
}
.price del { font-size: .55em; }
.overlay-price {
  position: absolute;
  z-index: 1;
  left: 9cqw;
  bottom: 1.45cqw;
  min-width: calc(8.5cqw * var(--label-scale));
  transform: rotate(-4deg);
  text-align: center;
}
.flake {
  position: absolute;
  z-index: 1;
  right: .6cqw;
  top: .1cqw;
  width: 4.15cqw;
  height: 4.15cqw;
  transform: rotate(-10deg);
}
.flake i, .flake::before, .flake::after {
  content: "";
  position: absolute;
  left: 41%;
  top: 0;
  width: 18%;
  height: 100%;
  background: #57c7eb;
  clip-path: polygon(0 0, 100% 0, 75% 50%, 100% 100%, 0 100%, 25% 50%);
}
.flake::before { transform: rotate(60deg); }
.flake::after { transform: rotate(-60deg); }
.card-info { padding: .55cqw 0 0 1.9cqw; margin-right: -1.85cqw; }
.card h3 {
  margin: 0;
  font-size: calc(2.36cqw * var(--ramen-text-scale));
  font-weight: 760;
  letter-spacing: -.064em;
  line-height: 1.13;
  overflow-wrap: break-word;
}
.description {
  margin: .34cqw 0 0;
  font-size: calc(1.05cqw * var(--ramen-text-scale));
  font-weight: 570;
  letter-spacing: -.037em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.block[data-style="tea"] .art { width: 16.9cqw; }
.block[data-style="tea"] .overlay-price { left: 8.9cqw; }
.block[data-style="bowls"] .card-grid {
  --row-height: 53.7cqw;
  column-gap: 4.5cqw;
}
.block[data-style="bowls"] .art { width: min(100%, 39cqw); height: calc(36.4cqw - 12cqw * var(--extra-text-scale)); }
.block[data-style="bowls"][data-columns="3"] .card-grid { column-gap: 2.8cqw; }
.block[data-style="bowls"][data-columns="3"] .art { width: 100%; height: calc(27cqw - 12cqw * var(--extra-text-scale)); }
.block[data-style="bowls"][data-rows="4"] { --shared-name-size: 1.98cqw; }
.block[data-style="bowls"][data-rows="4"] .card-grid { --row-height: 41.3cqw; }
.block[data-style="bowls"][data-rows="4"] .art { height: calc(24.7cqw - 25cqw * var(--extra-text-scale)); }
.block[data-style="bowls"][data-rows="4"] .combined .art { height: calc(21.3cqw - 25cqw * var(--extra-text-scale)); }
.block[data-style="bowls"] .photo {
  filter: brightness(1.02);
  mask-image: linear-gradient(transparent, #000 3%, #000 97%, transparent);
}
.block[data-style="bowls"] .overlay-price { left: auto; right: 3.8cqw; bottom: 1.7cqw; min-width: calc(9.1cqw * var(--label-scale)); }
.block[data-style="bowls"] .card-info { padding: .65cqw 0 0 .45cqw; margin-right: 0; }
.block[data-style="bowls"] h3 { font-size: calc(2.87cqw * var(--ramen-text-scale)); }
.block[data-style="bowls"] .description { font-size: calc(1.15cqw * var(--ramen-text-scale)); }
.block[data-style="bowls"][data-rows="4"] .overlay-price { right: 2.1cqw; }
.block[data-style="bowls"][data-rows="4"] .card-info { padding-top: .5cqw; }
.block[data-style="bowls"][data-rows="4"] h3 { font-size: calc(2.35cqw * var(--ramen-text-scale)); }
.block[data-style="bowls"][data-rows="4"] .card-info:not(.shared) h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.block[data-style="bowls"][data-rows="4"] .weight { font-size: calc(1.36cqw * var(--ramen-text-scale)); }
.block[data-style="bowls"][data-rows="4"] .description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  font-size: calc(1.02cqw * var(--ramen-text-scale));
  line-height: 1.32;
}
.block[data-style="bowls"][data-rows="4"] .combined .description,
.block[data-style="bowls"][data-rows="4"] .card-info:has(.options) .description { -webkit-line-clamp: 3; }
.stage[data-large-text="true"] .description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.stage[data-large-text="true"] .block[data-style="bowls"][data-rows="4"] .combined .description { -webkit-line-clamp: 2; }
.stage[data-large-text="true"] .block:not([data-style="bowls"]) h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.block[data-style="bowls"][data-rows="4"] .shared + .shared { margin-top: .65cqw; }
.badge {
  --label-scale: 1;
  position: absolute;
  top: .4cqw;
  right: 3.4cqw;
  z-index: 1;
  font-size: 2.6cqw;
  font-weight: 800;
}
.weight {
  display: inline-block;
  margin-left: .95cqw;
  font-size: calc(1.59cqw * var(--ramen-text-scale));
  font-weight: 520;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.heat {
  display: inline-block;
  padding-left: .6cqw;
  font-family: Arial, sans-serif;
  font-size: .92em;
  letter-spacing: -.3em;
  margin-right: .25em;
  white-space: nowrap;
  filter: brightness(0) saturate(100%) invert(13%) sepia(98%) saturate(6900%) hue-rotate(354deg) brightness(90%) contrast(107%);
}
.options { display: grid; gap: .35cqw; margin-top: .55cqw; }
.options div { display: flex; align-items: baseline; gap: .75cqw; font-size: calc(1.25cqw * var(--ramen-text-scale)); font-weight: 650; }
.mini-price { vertical-align: middle; margin-left: .85cqw; font-size: calc(1.58cqw * var(--label-scale)); padding: calc(.4cqw * var(--label-scale)) calc(.55cqw * var(--label-scale)); }
.options .mini-price { margin: 0; }
.shared + .shared { margin-top: 1.1cqw; }
.shared h3 { font-size: calc(var(--shared-name-size, 2.43cqw) * var(--ramen-text-scale)) !important; }
.sold-out .photo { opacity: .44; }
.stock {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 4.6cqw;
  max-width: 100%;
  background: #fff;
  padding: .6cqw;
  color: #a40000;
  font-size: 1.6cqw;
  font-weight: 750;
}
.shared .stock { position: static; padding: 0; }
.focused { outline: 1px solid #53bde3; outline-offset: .5cqw; border-radius: .4cqw; }
.empty { font: 700 2.6cqw Manrope, sans-serif; }
