:root {
  color-scheme: light;
  font-family: "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  color: #421f31;
  background: #321424;
  font-synthesis: none;
  --ink: #421f31;
  --paper: #fff4df;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(16px, 5vw, 72px) clamp(12px, 4vw, 56px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% -10%, #a44e72 0%, transparent 70%),
    repeating-linear-gradient(135deg, #fff1d809 0 1px, transparent 1px 24px),
    repeating-linear-gradient(45deg, #fff1d809 0 1px, transparent 1px 24px),
    #321424;
}
main {
  position: relative;
  width: min(100%, 1100px);
  isolation: isolate;
  border: 1px solid #d4a664;
  padding: clamp(14px, 3.6vw, 46px);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 65% 0%, #fffaf0 0%, transparent 68%),
    linear-gradient(145deg, #fff1dc, #f2d8c5);
  box-shadow: 0 0 0 5px #36182a, 0 0 0 6px #b58a54, 0 24px 66px #210c17b8;
}
main::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid #b88b525c;
  border-radius: 12px;
}
.masthead { text-align: center; margin: 0 0 clamp(18px, 3.6vw, 35px); }
.crest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 22px);
  color: #7c3051;
  margin: 0;
  font: 700 clamp(.73rem, 1.9vw, .95rem)/1.45 "Cormorant Garamond", Georgia, "Yu Mincho", serif;
  letter-spacing: .17em;
}
.crest::before, .crest::after {
  content: "";
  width: clamp(18px, 10vw, 114px);
  height: 1px;
  background: linear-gradient(90deg, transparent, #b58747);
}
.crest::after { rotate: 180deg; }
.crest span { color: #9a6e33; font-size: .78em; }
h1 {
  margin: 7px 0 0;
  color: var(--ink);
  font: 800 clamp(1.27rem, 4.5vw, 3.05rem)/1.3 "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  letter-spacing: -.055em;
}
h1 span { display: inline-block; }
.display {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: stretch;
  gap: clamp(16px, 2.9vw, 32px);
}
.salon {
  --ribbon-light: #f4cc86;
  --ribbon-dark: #b36b3c;
  min-width: 0;
  min-height: 335px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 11px;
  padding: clamp(22px, 3vw, 36px) clamp(16px, 3vw, 34px);
  border: 1px solid #c59352;
  border-radius: 48% 48% 10px 10px / 14% 14% 10px 10px;
  color: #ffefda;
  background:
    radial-gradient(ellipse at 50% 8%, #bf6b84 0%, transparent 62%),
    repeating-conic-gradient(from 45deg, #f6c7c312 0% 25%, transparent 0% 50%) 50% 50% / 23px 23px,
    linear-gradient(180deg, #843957, #55233f 66%, #3b1931);
  box-shadow: inset 0 0 0 4px #4e223a, inset 0 0 0 5px #d7a765, inset 0 -32px 42px #401b3570;
}
.salon::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px;
  border: 1px solid #dcb57d55;
  border-radius: inherit;
}
.salon[data-display="city"] { --ribbon-light: #e79bb4; --ribbon-dark: #91486f; }
.salon[data-display="contest"] { --ribbon-light: #d0baf7; --ribbon-dark: #8563ac; }
.salon[data-display="journey"] { --ribbon-light: #a0dbc9; --ribbon-dark: #408775; }
.salon[data-display="battle"] { --ribbon-light: #a5c9f0; --ribbon-dark: #496890; }
.salon h2 {
  margin: 0;
  color: #fff3d7;
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .15em;
}
.salon h2::before, .salon h2::after { content: " ◆ "; color: #edc885; font-size: .68em; }
.rosette {
  width: clamp(64px, 8vw, 96px);
  aspect-ratio: 1;
  margin: 2px 0 clamp(21px, 2.8vw, 31px);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  border: 2px solid #e5bf81;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--ribbon-light) 0deg 8deg, var(--ribbon-dark) 10deg 16deg);
  box-shadow: 0 6px 16px #3311298f;
}
.rosette::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 15%;
  top: 69%;
  width: 70%;
  height: 72%;
  background: linear-gradient(90deg, var(--ribbon-dark), var(--ribbon-light) 43%, var(--ribbon-dark) 53%, var(--ribbon-light) 92%);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 75% 78%, 56% 100%, 50% 52%, 44% 100%, 25% 78%, 0 100%);
}
.rosette span {
  display: grid;
  place-items: center;
  width: 65%;
  aspect-ratio: 1;
  border: 2px solid #9b6334;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 22%, #fff9cf, #f4d38c 58%, #b87f42);
  color: #754820;
  box-shadow: inset 0 0 0 2px #fff0b577;
  font: 700 clamp(1.2rem, 3.3vw, 1.8rem)/1 Georgia, serif;
}
.ribbon-card { width: 100%; }
.ribbon-card h3 {
  margin: 0 0 6px;
  font: 800 clamp(1.18rem, 3vw, 1.72rem)/1.35 "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  color: #fff5e0;
  overflow-wrap: anywhere;
}
.ribbon-card p {
  margin: 0 auto;
  max-width: 30em;
  min-height: 3.3em;
  font-size: clamp(.76rem, 1.4vw, .87rem);
  line-height: 1.65;
  color: #fae2d9;
}
time.ribbon-date {
  color: #f2d49d;
  font-size: .69rem;
  font-weight: 400;
  letter-spacing: .09em;
}

.console {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(11px, 2.5vw, 28px);
  border-radius: 12px;
  border: 1px solid #bb8e4e;
  background: #fffaf0a8;
  box-shadow: inset 0 0 0 4px #faecd9, inset 0 0 0 5px #b98b5347;
}
.console h2 {
  margin: 0 auto clamp(15px, 2.8vw, 26px);
  color: var(--paper);
  background: linear-gradient(120deg, #a13a66, #682142);
  padding: .65em 1.5em;
  min-width: 56%;
  max-width: 100%;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
  font-size: clamp(.81rem, 1.65vw, 1.06rem);
  letter-spacing: .09em;
}
.timer {
  container-type: inline-size;
  display: grid;
  grid-template-columns: 1.21fr repeat(3, minmax(0, 1fr));
  gap: clamp(4px, .85vw, 9px);
  margin: 0;
}
.unit {
  display: grid;
  justify-items: center;
  padding: clamp(9px, 1.6vw, 18px) 0;
  border: 1px solid #c49d68;
  border-radius: 8px;
  background: linear-gradient(155deg, #fffaf0, #f9e8d3);
  box-shadow: inset 0 0 0 2px #fff9ed;
}
.unit:first-child {
  color: #fff2d8;
  background: radial-gradient(ellipse at 25% 0%, #a3456c, #672544 70%);
  box-shadow: inset 0 0 0 2px #eac99061;
}
.number {
  grid-row: 1;
  margin: 0;
  font: 700 clamp(1.25rem, 11.3cqi, 3.25rem)/1 "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.055em;
}
.label { padding-top: 7px; font-size: clamp(.63rem, 2.8cqi, .82rem); font-weight: 700; }
.deadline {
  margin: clamp(16px, 2.5vw, 25px) 0 0;
  padding-top: clamp(12px, 1.9vw, 18px);
  border-top: 1px solid #d4b384;
  color: #7e3652;
  text-align: center;
  font-size: clamp(.71rem, 1.5vw, .85rem);
  line-height: 1.65;
}
time { display: block; color: var(--ink); font-size: 1.12em; font-weight: 700; }
footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin: clamp(14px, 2.5vw, 24px) 0 0;
  font-size: clamp(.73rem, 1.5vw, .86rem);
  line-height: 1.75;
}
footer p { margin: 0; }
a { color: #80264e; text-underline-offset: .25em; font-weight: 700; }
a:hover { color: #50152e; }
a:focus-visible { outline: 2px solid #80264e; outline-offset: 4px; }
@media (max-width: 700px) {
  main { width: min(100%, 480px); }
  .display { grid-template-columns: 1fr; }
  .timer { max-width: 450px; width: 100%; align-self: center; }
}
@media (max-width: 355px) {
  body { padding-inline: 9px; }
  main { padding-inline: 12px; }
}
