:root {
  --paper: #f4efe6;
  --paper-deep: #ebe1d2;
  --ink: #202326;
  --muted: #6d747b;
  --line: rgba(32, 35, 38, .11);
  --blue: #245ea8;
  --red: #b63a2d;
  --green: #26735f;
  --gold: #b8842f;
  --white: rgba(255, 253, 248, .74);
  --shadow: 0 18px 45px rgba(54, 43, 28, .10);
}

* { box-sizing: border-box; }
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff3b9;
  position: relative;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background:
    url("/static/petals_individual/petal_01.png") no-repeat 28px 18px / 92px auto,
    url("/static/petals_individual/petal_03.png") no-repeat calc(100% - 118px) 42px / 128px auto,
    url("/static/petals_individual/petal_02.png") no-repeat 18px calc(100% - 110px) / 112px auto,
    url("/static/petals_individual/petal_06.png") no-repeat calc(100% - 120px) calc(100% - 92px) / 104px auto;
  opacity: .58;
}
body::after {
  background:
    url("/static/petals_individual/petal_04.png") no-repeat 50% 88px / 108px auto,
    url("/static/petals_individual/petal_05.png") no-repeat 50% calc(100% - 160px) / 144px auto;
  opacity: .16;
  filter: saturate(.92);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 max(18px, calc((100vw - 1080px) / 2));
  background: rgba(244, 239, 230, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: .02em;
  color: var(--ink);
}
.brand::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 2px solid var(--red);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(182, 58, 45, .12), rgba(184, 132, 47, .12));
}
.site-header nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.site-header nav a { padding: 8px 10px; border-radius: 8px; color: #fff; }
.site-header nav a:hover { background: rgba(255, 253, 248, .75); color: var(--blue); }

.page {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 24px 18px 36px;
}
.site-header,
.page,
.site-footer {
  position: relative;
  z-index: 1;
}
.site-footer {
  padding: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer-links a {
  color: var(--blue);
  font-weight: 700;
}
.site-footer-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--white); }
.alert.error { color: #9d2b22; border-color: rgba(182, 58, 45, .25); }
.alert.success { color: #1d6653; border-color: rgba(38, 115, 95, .25); }

.home-block { margin-top: 22px; }
.home-block:first-child { margin-top: 0; }
.home-block-title { margin-bottom: 14px; }
.home-block-title h1,
.home-block-title h2 { margin: 0; letter-spacing: 0; }
.home-block-title h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; }
.home-block-title h2 { font-size: 30px; }

.activity-notice {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(54, 43, 28, .12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(184, 132, 47, .14), transparent 30%),
    linear-gradient(145deg, #fffdf8 0%, #f3eadc 100%);
  box-shadow: var(--shadow);
}
.activity-notice::after {
  content: "文脉";
  position: absolute;
  right: 28px;
  bottom: 12px;
  color: rgba(182, 58, 45, .08);
  font-size: 106px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.notice-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.notice-grid h2 {
  margin: 0 0 14px;
  font-size: 34px;
}
.notice-grid p {
  max-width: 680px;
  margin: 0;
  color: #555d64;
  line-height: 1.9;
  font-size: 17px;
}
.notice-list {
  margin: 0;
  padding: 18px;
  list-style: none;
  border: 1px solid rgba(36, 94, 168, .14);
  border-radius: 8px;
  background: rgba(255, 253, 248, .74);
}
.notice-list li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.notice-list li:last-child { border-bottom: 0; }
.notice-list b { color: var(--red); }
.notice-list span { color: #3d444a; line-height: 1.6; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: stretch;
  min-height: 440px;
  padding: 46px;
  overflow: hidden;
  border: 1px solid rgba(54, 43, 28, .12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(184, 132, 47, .14), transparent 30%),
    linear-gradient(145deg, #fffdf8 0%, #f3eadc 100%);
  box-shadow: var(--shadow);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(182, 58, 45, .16);
  border-radius: 7px;
  pointer-events: none;
}
.hero::after {
  content: "文脉";
  position: absolute;
  right: 34px;
  bottom: 18px;
  color: rgba(182, 58, 45, .10);
  font-size: 112px;
  font-weight: 900;
  line-height: 1;
}
.hero > div { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--red);
  font-size: 14px;
  font-weight: 750;
}
.eyebrow.small {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.eyebrow.small::before { width: 22px; background: var(--gold); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--red); }
.hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero p { max-width: 620px; margin: 0; color: #555d64; line-height: 1.9; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-card {
  align-self: end;
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(36, 94, 168, .18);
  background: rgba(255, 253, 248, .72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.62);
}
.hero-card strong { display: block; color: var(--blue); font-size: 58px; line-height: 1; }
.hero-card span { display: block; margin-top: 10px; color: var(--muted); }
.hero-card::after {
  content: "生成后自动归入我的作品";
  display: block;
  margin-top: 46px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #3d444a;
  font-size: 14px;
  line-height: 1.6;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgba(54, 43, 28, .10);
  border-radius: 8px;
  background: rgba(54, 43, 28, .10);
  box-shadow: 0 10px 26px rgba(54, 43, 28, .06);
}
.flow-strip div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 16px;
  background: rgba(255, 253, 248, .78);
}
.flow-strip b {
  color: var(--red);
  font-size: 13px;
  letter-spacing: .04em;
}
.flow-strip span { font-weight: 750; }

.activity-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(54, 43, 28, .10);
  border-radius: 8px;
  background: rgba(255, 253, 248, .78);
  box-shadow: 0 10px 26px rgba(54, 43, 28, .06);
}
.activity-panel h2 { margin: 0 0 12px; font-size: 26px; }
.activity-panel p { margin: 0; color: var(--muted); line-height: 1.8; }
.activity-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.activity-panel li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.activity-panel li:last-child { border-bottom: 0; }
.activity-panel b { color: var(--red); }
.activity-panel span { color: #3d444a; line-height: 1.6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(36, 94, 168, .34);
  font-weight: 750;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #fff; background: var(--blue); box-shadow: 0 12px 24px rgba(36, 94, 168, .18); }
.btn.ghost { color: var(--blue); background: rgba(255, 253, 248, .74); }
.btn.small { min-height: 36px; font-size: 14px; }
.btn.full { width: 100%; margin-top: 18px; }

.section { margin-top: 34px; }
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-title h1, .section-title h2 { margin: 0; font-size: 28px; letter-spacing: 0; }
.section-title a { color: var(--blue); font-weight: 700; }
.spot-grid, .work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.spot-card, .work-card, .form-panel, .detail, .poster-view {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(54, 43, 28, .10);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(54, 43, 28, .07);
  backdrop-filter: blur(6px);
}
.spot-card, .work-card { transition: transform .16s ease, box-shadow .16s ease; }
.spot-card:hover, .work-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(54, 43, 28, .11); }
.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(rgba(32,35,38,.12), rgba(32,35,38,.28)),
    linear-gradient(135deg, #315f86, #8f513f);
  font-weight: 850;
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 6px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; }
.card-body h3 { margin: 0 0 8px; font-size: 17px; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.card-action {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.form-panel {
  width: min(680px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  margin: 30px auto;
  padding: 28px;
}
.auth-lang-switch {
  display: inline-flex;
  float: right;
  gap: 3px;
  padding: 3px;
  margin-bottom: 16px;
  border: 1px solid rgba(20, 158, 216, .28);
  border-radius: 999px;
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 8px 18px rgba(37, 34, 36, .08);
}
.auth-lang-switch .lang-switch {
  border: 1px solid transparent;
}
.auth-lang-switch + h1 {
  clear: both;
}
.form-panel h1 { margin: 0 0 8px; font-size: 30px; }
.form-panel p { color: var(--muted); line-height: 1.7; }
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 10px;
  padding: 6px;
  border: 1px solid rgba(32,35,38,.10);
  border-radius: 8px;
  background: rgba(244, 239, 230, .72);
}
.auth-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 7px;
  color: #3d444a;
  font-weight: 850;
}
.auth-tabs a.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(36, 94, 168, .16);
}
.service-hotline {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 750;
}
.service-hotline a {
  color: var(--blue);
}
form label { display: block; margin: 18px 0 8px; font-weight: 750; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(32,35,38,.16);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fffefa;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: rgba(36, 94, 168, .55); box-shadow: 0 0 0 3px rgba(36, 94, 168, .09); }
textarea { min-height: 100px; resize: vertical; }
.radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-grid label {
  margin: 0;
  min-height: 62px;
  border: 1px solid rgba(32,35,38,.14);
  border-radius: 8px;
  padding: 13px;
  font-weight: 650;
  background: #fffefa;
}
.upload-hint { margin-top: 8px; color: var(--green); font-size: 13px; }
.upload-hint.uploading { color: var(--blue); }
.upload-hint.error { color: var(--red); }
.upload-hint.success { color: var(--green); }

.activity-story {
  width: 100vw;
  margin: -24px calc(50% - 50vw) -36px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: #102538;
}
.activity-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 62px);
  padding: 52px max(22px, calc((100vw - 1080px) / 2));
  overflow: hidden;
  scroll-snap-align: start;
  color: #fffdf8;
  background:
    linear-gradient(135deg, rgba(16,37,56,.92), rgba(37,55,60,.76)),
    var(--activity-kv, linear-gradient(135deg, #245ea8, #b63a2d));
  background-size: cover;
  background-position: center;
}
.activity-screen:nth-child(even) {
  background:
    linear-gradient(135deg, rgba(255,253,248,.94), rgba(238,229,212,.90)),
    var(--activity-kv, linear-gradient(135deg, #fffdf8, #d7e7e0));
  color: var(--ink);
}
.activity-screen-copy { position: relative; z-index: 1; }
.activity-screen h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}
.activity-lead {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.6;
  font-weight: 750;
}
.activity-body {
  max-width: 640px;
  margin: 16px 0 0;
  color: inherit;
  opacity: .78;
  line-height: 1.9;
  font-size: 16px;
}
.activity-kv-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.activity-kv-meta span {
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  font-weight: 750;
}
.activity-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 390px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.13);
  overflow: hidden;
}
.activity-screen:nth-child(even) .activity-visual {
  border-color: rgba(36,94,168,.18);
  background: rgba(255,253,248,.70);
}
.activity-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.activity-visual span {
  color: rgba(255,255,255,.22);
  font-size: 108px;
  font-weight: 950;
}
.activity-screen:nth-child(even) .activity-visual span { color: rgba(182,58,45,.14); }
.activity-step-grid,
.activity-example-row,
.activity-prize-row {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}
.activity-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.activity-step-grid div,
.activity-mini-example,
.activity-prize-chip {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(36,94,168,.16);
  border-radius: 8px;
  background: rgba(255,253,248,.76);
  box-shadow: 0 12px 30px rgba(54,43,28,.08);
}
.activity-step-grid b {
  display: block;
  color: var(--red);
  font-size: 13px;
  margin-bottom: 16px;
}
.activity-step-grid span,
.activity-mini-example strong,
.activity-prize-chip strong {
  display: block;
  font-size: 20px;
  font-weight: 850;
}
.activity-mini-example span,
.activity-prize-chip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.activity-prize-chip.is-empty {
  opacity: .56;
  filter: grayscale(1);
}
.activity-fixed-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  display: none;
  width: min(420px, calc(100vw - 32px));
  min-height: 50px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--red);
  font-weight: 850;
  box-shadow: 0 18px 36px rgba(182,58,45,.24);
}

.activity-side-nav {
  position: fixed;
  right: max(0px, calc((100vw - 1080px) / 2 - 76px));
  top: 42%;
  z-index: 45;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}
.activity-side-nav a {
  display: grid;
  place-items: center;
  width: 50px;
  min-height: 112px;
  padding: 12px 8px;
  border: 1px solid rgba(255, 253, 248, .62);
  border-radius: 8px 0 0 8px;
  color: #fff;
  background: linear-gradient(180deg, var(--red), var(--orange));
  box-shadow: 0 12px 28px rgba(37, 34, 36, .18);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}
.activity-side-nav a:nth-child(2) {
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.activity-poster-mode {
  --poster-ink: #24150d;
  --poster-muted: #6e5947;
  --poster-red: #c51f32;
  --poster-pink: #e96b91;
  --poster-paper: #fff3b8;
  --poster-label: #fff0a8;
  background: #f7eaa6;
  overflow-x: hidden;
}
.activity-poster-mode::before,
.activity-poster-mode::after,
.activity-poster-mode .site-header,
.activity-poster-mode .site-footer {
  display: none;
}
.activity-poster-mode .page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.event-poster {
  position: relative;
  width: min(100vw, 1391px);
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  color: var(--poster-ink);
  background:
    linear-gradient(90deg, rgba(255, 248, 185, .28), rgba(255, 255, 233, .66) 50%, rgba(255, 238, 158, .26)),
    #fff0b5;
  font-family: "Songti SC", "STSong", "SimSun", "PingFang SC", "Microsoft YaHei", serif;
  box-shadow: 0 0 0 1px rgba(124, 76, 22, .08);
}
.event-poster::before,
.event-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.event-poster::before {
  background:
    url("/static/activity/pd.png") top center / 100% auto repeat-y,
    linear-gradient(90deg, rgba(255, 243, 158, .42) 0%, rgba(255, 254, 222, .92) 43%, rgba(255, 238, 150, .38) 100%);
  opacity: .95;
  z-index: 0;
}
.event-poster::after {
  background:
    url("/static/petals_individual/petal_01.png") no-repeat 87.5% 95px / 199px auto,
    url("/static/petals_individual/petal_03.png?v=1") no-repeat 4.3% 1208px / 372px auto,
    url("/static/petals_individual/petal_02.png") no-repeat right 675px / 474px auto,
    url("/static/petals_individual/petal_04.png") no-repeat 83% 5088px / 92px auto;
  opacity: .92;
  z-index: 1;
}
.event-poster > * {
  position: relative;
  z-index: 2;
}
.poster-topbar {
  position: absolute;
  top: 54px;
  right: 45px;
  left: 45px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.poster-logo-mark {
  flex: 0 1 360px;
  min-width: 0;
  width: min(360px, 42vw);
}
.poster-logo-mark img {
  width: 100%;
  height: auto;
  display: block;
}
.poster-lang-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(20, 158, 216, .28);
  border-radius: 999px;
  background: rgba(255, 253, 248, .78);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  box-shadow: 0 8px 20px rgba(37, 34, 36, .10);
}
.poster-lang-toggle a {
  display: grid;
  place-items: center;
  min-width: 64px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--poster-ink);
  font-size: 18px;
  font-weight: 850;
}
.poster-lang-toggle a.active {
  color: #fff;
  background: var(--blue);
}
.poster-hero {
  min-height: 646px;
  padding: 43px 0 0 151px;
}
.poster-title-kicker {
  margin: 0;
  font-size: 78px;
  font-weight: 950;
  line-height: 1.03;
  letter-spacing: -1px;
}
.poster-hero h1 {
  margin: 10px 0 0 -8px;
  font-size: 140px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -5px;
}
.poster-subtitle {
  position: relative;
  display: block;
  margin-top: 62px;
  color: #020202;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.poster-subtitle span {
  display: inline-block;
  font-size: 65px;
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: 20px;
}
.poster-subtitle b {
  position: absolute;
  top: 10px;
  left: 735px;
  padding-top: 12px;
  font-size: 40px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 4px;
  white-space: nowrap;
}
.poster-subtitle b::after {
  content: "·   ·   ·";
  display: block;
  margin-top: 18px;
  padding-left: 28px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 54px;
}
.poster-lottery {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 82px;
  margin: 38px 0 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #020202;
}
.poster-lottery-text {
  display: inline-grid;
  grid-template-columns: repeat(6, 1fr);
  width: 745px;
  font-size: 58px;
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}
.poster-lottery-text i {
  display: block;
  font-style: normal;
}
.poster-regions {
  display: inline-flex;
  position: absolute;
  top: -7px;
  left: 735px;
  gap: 45px;
  margin-top: 0;
  font-size: 44px;
  line-height: 1.08;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}
.poster-regions i {
  font-style: normal;
  text-align: center;
}
.poster-en {
  margin: 48px 0 0 -5px;
  max-width: 1120px;
  color: #524434;
  font-family: Arial, sans-serif;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 4px;
}
.poster-en strong {
  color: #111;
}
.poster-orgs {
  display: grid;
  gap: 45px;
  min-height: 504px;
  padding: 35px 0 0 146px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.poster-orgs p {
  margin: 0;
  font-size: 35px;
  line-height: 1.55;
  letter-spacing: 3px;
  overflow-wrap: anywhere;
  word-break: normal;
}
.poster-orgs b {
  font-weight: 400;
}
.poster-time {
  padding: 0 36px 31px;
  text-align: center;
}
.poster-time h2,
.poster-checkins h2,
.poster-rules h2 {
  margin: 0;
  font-size: 72px;
  line-height: 1.25;
  font-weight: 850;
}
.poster-time p {
  margin: 23px 0 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 38px;
  letter-spacing: 10px;
}
.poster-checkins {
  padding: 70px 0 0;
  text-align: center;
}
.checkin-map {
  position: relative;
  width: 100%;
  aspect-ratio: 430 / 2220;
  margin-top: 48px;
}
.checkin-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}
.checkin-route path {
  fill: none;
  stroke: var(--poster-red);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 0 rgba(138, 15, 28, .12));
}
.route-pin {
  position: absolute;
  left: var(--pin-left);
  top: var(--pin-top);
  z-index: 3;
  width: 28px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 8px solid var(--poster-red);
  border-radius: 50%;
  background: #fff8ca;
  box-shadow: 0 1px 0 rgba(123, 22, 20, .18);
}
.checkin-card {
  position: absolute;
  left: var(--card-left);
  top: var(--card-top);
  z-index: 4;
  display: grid;
  width: 34%;
  transform: translateY(-50%);
  justify-items: center;
  gap: 3px;
  transition: transform .16s ease, filter .16s ease;
}
.checkin-card.is-left {
  left: 7% !important;
}
.checkin-card.is-right {
  right: 6%;
  left: auto !important;
}
.checkin-card:hover {
  transform: translateY(-50%) scale(1.03);
  filter: saturate(1.08);
}
.checkin-card img {
  width: 100%;
  aspect-ratio: 1.32 / 1;
  object-fit: cover;
  border: 3px solid #fff8c9;
  box-shadow: 0 2px 5px rgba(97, 49, 8, .18);
}
.checkin-card strong {
  display: block;
  max-width: 100%;
  padding: 2px 6px 3px;
  border: 1px solid rgba(190, 139, 33, .55);
  border-radius: 5px;
  color: #8a6325;
  background: rgba(255, 242, 159, .88);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
.poster-rules {
  padding: 70px 100px 0;
  text-align: left;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.poster-rules h2 {
  margin-bottom: 14px;
  text-align: center;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}
.poster-rules li,
.poster-rules p {
  margin: 0 0 5px;
  color: #302820;
  font-size: 32px;
  line-height: 1.88;
  text-align: justify;
  text-justify: inter-ideograph;
}
.poster-flow-list {
  display: grid;
  gap: 0;
}
.poster-flow-list p {
  display: block;
}
.poster-flow-list p span {
  display: inline;
  font-weight: 400;
}
.poster-flow-list .poster-flow-sub {
  display: block;
}
.poster-action {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 44px 0 14px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.poster-action a {
  display: grid;
  place-items: center;
  width: 190px;
  min-height: 43px;
  border-radius: 8px;
  color: #fff7de;
  background: linear-gradient(90deg, #ea8392 0%, #ee717d 50%, #df2434 100%);
  font-size: 22px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(210, 42, 54, .16);
}
.poster-action p {
  margin: 0;
  font-size: 12px;
}
.poster-footer-art {
  width: 100%;
  margin-top: -8px;
}

@media (max-width: 1390px) {
  .event-poster::after {
    background:
      url("/static/petals_individual/petal_01.png") no-repeat 87.5% 15.8298vw / 14.3063vw auto,
      url("/static/petals_individual/petal_03.png?v=1") no-repeat 5.3% 133.7980vw / 26.7433vw auto,
      url("/static/petals_individual/petal_02.png") no-repeat right 70.5296vw / 34.0762vw auto,
      url("/static/petals_individual/petal_04.png") no-repeat 83% 365.7857vw / 6.6139vw auto;
  }
  .poster-hero {
    min-height: 46.4414vw;
    padding-top: 14.0913vw;
    padding-left: 5.8555vw;
  }
  .poster-topbar {
    top: 3.8788vw;
    right: 3.2351vw;
    left: 3.2351vw;
    gap: 1.7254vw;
  }
  .poster-logo-mark {
    width: 26.6506vw;
  }
  .poster-lang-toggle {
    gap: .4313vw;
    padding: .4313vw;
  }
  .poster-lang-toggle a {
    min-width: 4.601vw;
    min-height: 2.7318vw;
    padding-right: 1.0065vw;
    padding-left: 1.0065vw;
    font-size: 1.293vw;
  }
  .poster-title-kicker {
    font-size: 5.6075vw;
    letter-spacing: -0.0719vw;
  }
  .poster-hero h1 {
    margin-top: 0.7189vw;
    margin-left: -0.5751vw;
    font-size: 10.0647vw;
    letter-spacing: -0.3595vw;
  }
  .poster-subtitle {
    margin-top: 4.4572vw;
  }
  .poster-subtitle span {
    font-size: 6.6729vw;
    letter-spacing: 1.4378vw;
  }
  .poster-subtitle b {
    top: 0.8627vw;
    left: 59.8397vw;
    padding-top: 0.8627vw;
    font-size: 2.8756vw;
    letter-spacing: 0.2876vw;
  }
  .poster-subtitle b::after {
    margin-top: 1.293vw;
    padding-left: 2.0129vw;
    font-size: 1.8692vw;
    letter-spacing: 3.8821vw;
  }
  .poster-lottery {
    gap: 5.895vw;
    margin-top: 2.7318vw;
  }
  .poster-lottery-text {
    width: 53.5586vw;
    font-size: 5.1697vw;
  }
  .poster-regions {
    top: -0.5032vw;
    left: 59.8397vw;
    gap: 3.2351vw;
    margin-top: 0;
    font-size: 3.1632vw;
  }
  .poster-en {
    margin-top: 3.4511vw;
    margin-left: -0.3595vw;
    max-width: 80.5176vw;
    font-size: 2.3005vw;
    letter-spacing: 0.2876vw;
  }
  .poster-orgs {
    gap: 3.2351vw;
    min-height: 36.233vw;
    padding-top: 5.5162vw;
    padding-left: 5.496vw;
  }
  .poster-orgs p {
    font-size: 3.5162vw;
    letter-spacing: 0.2157vw;
  }
  .poster-time {
    padding-right: 2.5881vw;
     padding-top: 14.2286vw;
    padding-bottom: 2.2286vw;
    padding-left: 2.5881vw;
  }
  .poster-time h2,
  .poster-checkins h2,
  .poster-rules h2 {
    font-size: 6.1761vw;
  }
  .poster-time p {
    margin-top: 1.6535vw;
    font-size: 3.7318vw;
    letter-spacing: 0.7189vw;
  }
  .poster-checkins {
    padding-top: 5.0324vw;
  }
  .poster-rules {
    padding-top: 5.0324vw;
    padding-right: 7.1891vw;
    padding-left: 7.1891vw;
  }
  .poster-rules li,
  .poster-rules p {
    font-size: 3.3005vw;
  }
  .checkin-card {
    width: 33%;
  }
  .checkin-card.is-right {
    right: 4%;
  }
}
@media (max-width: 390px) {
  .checkin-card {
    width: 31%;
  }
  .checkin-card.is-left {
    left: 8% !important;
  }
  .checkin-card.is-right {
    right: 6%;
  }
  .checkin-card strong {
    font-size: 8px;
  }
}
@media (max-width: 600px) {
  .event-poster {
    overflow-x: hidden;
  }
  .poster-topbar {
    top: 5vw;
    right: 3vw;
    left: 3vw;
    gap: 2.5vw;
  }
  .poster-lang-toggle {
    gap: .7vw;
    padding: .7vw;
  }
  .poster-lang-toggle a {
    min-width: 9.6vw;
    min-height: 6vw;
    padding: 0 1.3vw;
    font-size: 2.7vw;
  }
  .poster-logo-mark {
    flex: 0 1 calc(100vw - 34vw);
    max-width: calc(100vw - 61vw);
    width: calc(100vw - 61  vw);
  }
  .poster-hero {
    padding-top: 24vw;
  }
  .poster-title-kicker {
    font-size: 5.5vw;
  }
  .poster-hero h1 {
    font-size: 11.8vw;
    letter-spacing: -.1vw;
  }
  .poster-subtitle span {
    display: block;
    font-size: 5.8vw;
    letter-spacing: .32vw;
  }
  .poster-subtitle {
    position: relative;
    display: block;
    padding-right: 29vw;
  }
  .poster-subtitle b {
    position: absolute;
    top: .5vw;
    right: 5vw;
    padding-top: 0;
    font-size: 4.7vw;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .poster-subtitle b::after {
    display: none;
  }
  .poster-lottery {
    position: relative;
    display: block;
    padding-right: 22vw;
  }
  .poster-lottery-text {
    width: auto;
    font-size: 5.8vw;
    letter-spacing: 2.72vw;
  }
  .poster-regions {
    position: absolute;
    top: -5px;
    right: 5vw;
    gap: 9.7vw;
    font-size: 3.35vw;
  }
  .poster-en {
    max-width: 85vw;
    font-size: 2.9vw;
    letter-spacing: .08vw;
  }
  .poster-orgs {
    padding-right: 5vw;
  }
  .poster-orgs p {
    max-width: 82vw;
    font-size: 3vw;
    line-height: 2;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .poster-time p {
    font-size: 3vw;
    letter-spacing: 0;
    white-space: nowrap;
  }
}
.location-detail {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: start;
}
.detail-back {
  grid-column: 1 / -1;
  width: max-content;
  color: var(--blue);
  font-weight: 800;
}
.location-detail-cover {
  overflow: hidden;
  border-radius: 8px;
  background: #fffefa;
  box-shadow: var(--shadow);
}
.location-detail-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.location-detail-copy {
  padding: 24px;
  border: 1px solid rgba(54,43,28,.10);
  border-radius: 8px;
  background: rgba(255,253,248,.82);
  box-shadow: var(--shadow);
}
.location-detail-copy h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
}
.location-detail-copy p:not(.eyebrow) {
  margin: 16px 0 22px;
  color: var(--muted);
  line-height: 1.85;
}

.join-shell {
  max-width: 1120px;
  margin: 0 auto;
}
.join-head {
  padding: 30px 0 20px;
}
.join-head h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
}
.join-head p:not(.eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}
.join-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 18px;
}
.join-progress span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid rgba(32,35,38,.12);
  border-radius: 8px;
  background: rgba(255,253,248,.72);
  color: var(--muted);
  font-weight: 800;
}
.join-progress span.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: 18px;
  align-items: start;
}
.join-card {
  padding: 22px;
  border: 1px solid rgba(54,43,28,.10);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(54,43,28,.07);
  backdrop-filter: blur(6px);
}
.join-card h2 { margin: 0 0 10px; font-size: 24px; }
.join-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.social-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.social-example-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.social-example-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(32,35,38,.12);
  border-radius: 999px;
  color: #4d555c;
  background: #fffefa;
  box-shadow: none;
  font-size: 13px;
}
.social-example-tabs button.active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}
.social-example-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, .74);
  backdrop-filter: blur(6px);
}
.social-example-card[hidden] {
  display: none !important;
}
.social-example-thumb {
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--red));
  font-weight: 850;
}
.social-example-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.social-example-card b {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 13px;
}
.social-example-card strong {
  display: block;
  font-size: 16px;
}
.social-example-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}
.screenshot-drop {
  display: grid;
  place-items: center;
  min-height: 158px;
  margin-top: 16px;
  border: 1px dashed rgba(36,94,168,.46);
  border-radius: 8px;
  background: #fffefa;
  color: var(--blue);
  cursor: pointer;
}
.screenshot-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.screenshot-drop span {
  font-size: 20px;
  font-weight: 850;
}
.screenshot-drop small {
  margin-top: -34px;
  color: var(--muted);
}
.screenshot-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.screenshot-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.profile-form {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.prize-overview { margin-top: 18px; }
.prize-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.prize-item {
  display: grid;
  grid-template-rows: 150px minmax(0, auto);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}
.prize-item.is-empty {
  opacity: .55;
  filter: grayscale(1);
}
.prize-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  background: #fff;
  font-size: 28px;
  font-weight: 950;
}
.prize-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.prize-item h3 { margin: 0 0 6px; font-size: 16px; }
.prize-item p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.prize-item em {
  color: var(--green);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}
.prize-item.is-empty em { color: var(--red); }
.join-success-card {
  max-width: 720px;
  margin: 24px auto;
}
.draw-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 32, .62);
  backdrop-filter: blur(8px);
}
.draw-modal[hidden] { display: none; }
.draw-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 60px rgba(16,24,32,.28);
  text-align: center;
}
.draw-dialog h2 { margin: 0 0 14px; font-size: 28px; }
.wheel-style-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
  padding: 5px;
  border: 1px solid rgba(32,35,38,.10);
  border-radius: 8px;
  background: #f4efe6;
}
.wheel-style-tabs button {
  min-height: 34px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  color: #4d555c;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 850;
}
.wheel-style-tabs button.active {
  color: #fff;
  background: var(--red);
}
.draw-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #f1ece2;
  box-shadow: none;
  font-size: 22px;
}
.wheel-wrap {
  position: relative;
  width: min(320px, 78vw);
  margin: 0 auto 18px;
  --wheel-ring: #fff6d6;
  --wheel-inner-ring: rgba(255,255,255,.78);
  --wheel-label-bg: rgba(32,35,38,.42);
  --wheel-label-color: #fff;
  --wheel-pointer: #ef3f32;
}
.wheel-pointer {
  position: absolute;
  left: 50%;
  top: -4px;
  z-index: 2;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--wheel-pointer);
}
.wheel {
  position: relative;
  aspect-ratio: 1;
  border: 10px solid var(--wheel-ring);
  border-radius: 50%;
  background: conic-gradient(#f8c713 0 120deg, #e94b35 120deg 240deg, #245ea8 240deg 360deg);
  box-shadow:
    inset 0 0 0 2px var(--wheel-inner-ring),
    inset 0 0 0 18px rgba(255,255,255,.08),
    0 14px 30px rgba(54,43,28,.16);
  transition: transform 3.6s cubic-bezier(.12,.75,.16,1);
}
.wheel::before {
  content: "";
  position: absolute;
  inset: 42%;
  z-index: 1;
  border-radius: 50%;
  background: #fffefa;
  box-shadow: 0 0 0 8px rgba(255,255,255,.42), 0 8px 18px rgba(32,35,38,.14);
}
.wheel::after {
  content: "奖";
  position: absolute;
  inset: 43%;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  font-weight: 950;
}
.wheel span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  gap: 8px;
  width: 104px;
  min-height: 106px;
  padding: 0;
  border-radius: 10px;
  color: var(--wheel-label-color);
  background: transparent;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.28;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,.28);
  word-break: keep-all;
  overflow-wrap: anywhere;
  transform: translate(-50%, -50%);
  transform-origin: center;
}
.wheel span b {
  width: 100%;
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.wheel-prize-thumb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: var(--red);
  font-size: 15px;
  font-style: normal;
  font-weight: 950;
  text-shadow: none;
}
.wheel-prize-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wheel-festival {
  border-width: 12px;
  --wheel-ring: #ffd85a;
  --wheel-inner-ring: rgba(255, 255, 255, .74);
  --wheel-label-bg: rgba(137, 38, 28, .64);
  --wheel-pointer: #e9382d;
}
.wheel-bay {
  border-width: 9px;
  --wheel-ring: #c8edf7;
  --wheel-inner-ring: rgba(255,255,255,.90);
  --wheel-label-bg: rgba(18, 78, 124, .64);
  --wheel-pointer: #149ed8;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.9),
    inset 0 0 0 18px rgba(255,255,255,.13),
    0 16px 34px rgba(20, 158, 216, .20);
}
.wheel-paper {
  border-width: 14px;
  --wheel-ring: #f6ead5;
  --wheel-inner-ring: rgba(126, 90, 42, .12);
  --wheel-label-bg: rgba(100, 75, 48, .70);
  --wheel-pointer: #b8842f;
  box-shadow:
    inset 0 0 0 2px rgba(126,90,42,.13),
    inset 0 0 0 18px rgba(255,255,255,.18),
    0 16px 34px rgba(84, 60, 32, .16);
}
.wheel-paper span {
  border-radius: 10px;
}
.wheel-ticket {
  border-width: 8px;
  --wheel-ring: #222326;
  --wheel-inner-ring: rgba(255,255,255,.82);
  --wheel-label-bg: rgba(255,255,255,.86);
  --wheel-label-color: #202326;
  --wheel-pointer: #222326;
  box-shadow:
    inset 0 0 0 2px rgba(32,35,38,.22),
    inset 0 0 0 18px rgba(255,255,255,.10),
    0 14px 28px rgba(32,35,38,.18);
}
.wheel-ticket span {
  border: 1px solid rgba(32,35,38,.14);
  background: rgba(255,255,255,.72);
  text-shadow: none;
}
.wheel-festival span,
.wheel-bay span,
.wheel-paper span {
  --wheel-label-color: #fff;
}
.draw-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(38,115,95,.22);
  border-radius: 8px;
  color: var(--green);
  background: rgba(38,115,95,.08);
  font-weight: 850;
}

.poster-builder {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin: 30px auto;
}
.template-preview,
.builder-form {
  border: 1px solid rgba(54, 43, 28, .10);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(54, 43, 28, .07);
  backdrop-filter: blur(6px);
}
.template-preview { padding: 22px; }
.template-preview h1 { margin: 0 0 18px; font-size: 30px; }
.mock-poster {
  width: min(380px, 100%);
  margin: 0 auto;
  padding: 18px;
  aspect-ratio: 9 / 14;
  border: 1px solid rgba(38, 115, 95, .32);
  border-radius: 8px;
  background: #fffefa;
  box-shadow: inset 0 0 0 10px #f4efe6;
}
.mock-head {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
}
.mock-head strong { font-size: 19px; }
.mock-head span { font-size: 12px; opacity: .86; }
.mock-slot {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1px dashed rgba(38, 115, 95, .48);
  border-radius: 7px;
  background: #f1e8d8;
  background-size: cover;
  background-position: center;
  color: var(--green);
  font-weight: 750;
}
.mock-slot.has-image { color: transparent; border-style: solid; }
.mock-slot.main { min-height: 210px; margin: 14px 0; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-copy { display: grid; gap: 6px; margin-top: 16px; }
.mock-copy b { font-size: 18px; }
.mock-copy span { color: var(--muted); font-size: 13px; }
.builder-form { padding: 22px; }
.compact-field { margin-bottom: 16px; }
.segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, 82px);
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(32,35,38,.14);
  border-radius: 8px;
  background: #f7f2e8;
}
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 7px;
  color: #4d555c;
  font-size: 14px;
  font-weight: 750;
}
.segmented input:checked + span { color: #fff; background: var(--blue); }
.upload-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.upload-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 92px;
  margin: 0;
  border: 1px dashed rgba(36, 94, 168, .42);
  border-radius: 8px;
  background: #fffefa;
  color: var(--blue);
  text-align: center;
  cursor: pointer;
}
.upload-slot input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-slot span { font-weight: 750; }
.helper-text { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.phone-row {
  display: grid;
  grid-template-columns: minmax(126px, 150px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.phone-row select,
.phone-row input {
  min-width: 0;
  height: 46px;
}
.phone-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23202326' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px 18px;
}
.phone-region,
.phone-number {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.phone-region label,
.phone-number label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.phone-region select,
.phone-number input {
  margin-top: 0;
}
.legal-agree {
  margin-top: 14px;
  font-size: 14px;
}
.agree-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 700;
  line-height: 1.6;
}
.agree-line input {
  width: 1em;
  height: 1em;
  min-height: 1em;
  margin: 0;
  flex: 0 0 auto;
}
.agree-line a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-subtext {
  margin: 8px 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.legal-panel {
  max-width: 760px;
}
.legal-page {
  max-width: 980px;
  margin: 24px auto 42px;
}
.legal-hero {
  padding: 24px 24px 0;
}
.legal-lang-switch {
  display: inline-flex;
  float: right;
  gap: 3px;
  padding: 3px;
  margin: 0 0 16px 16px;
  border: 1px solid rgba(20, 158, 216, .28);
  border-radius: 999px;
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 8px 18px rgba(37, 34, 36, .08);
}
.legal-hero h1 {
  clear: both;
  margin: 0;
  font-size: 30px;
  line-height: 1.28;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.legal-content {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(32,35,38,.10);
  border-radius: 8px;
  background: rgba(255, 254, 250, .78);
  line-height: 1.85;
}
.legal-content h2 {
  margin: 28px 0 12px;
  font-size: 20px;
  line-height: 1.35;
}
.legal-content h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  line-height: 1.4;
}
.legal-content p {
  margin: 0 0 12px;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal-content li {
  margin: 0 0 8px;
}
.legal-content hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.legal-note {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: rgba(36, 94, 168, .06);
}
.legal-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}
.legal-note p {
  margin: 0;
}
.legal-license {
  margin-top: 14px;
  font-weight: 700;
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 12px 0 18px;
  border: 1px solid rgba(32,35,38,.10);
  border-radius: 8px;
  background: #fffefa;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(32,35,38,.08);
  vertical-align: top;
  text-align: left;
}
.legal-table th {
  position: sticky;
  top: 0;
  background: #f5efe3;
  color: var(--ink);
  font-size: 14px;
}
.legal-table td:first-child,
.legal-table th:first-child {
  width: 100px;
  text-align: center;
}
.legal-table td:nth-child(2),
.legal-table th:nth-child(2) {
  width: 130px;
  white-space: nowrap;
}
.legal-content {
  word-break: break-word;
}
.checkin-lock-note,
.checkin-form {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 24px auto 42px;
}
.checkin-lock-note {
  display: block;
  margin-bottom: 0;
  padding: 16px 18px;
  border: 1px solid rgba(238, 63, 47, .22);
  border-radius: 8px;
  background: rgba(255, 254, 250, .86);
  box-shadow: 0 10px 30px rgba(54, 43, 28, .07);
  line-height: 1.75;
}
.checkin-lock-note b {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
}
.checkin-lock-note span {
  color: #4d555c;
}
.checkin-head,
.checkin-panel,
.checkin-success {
  border: 1px solid rgba(54, 43, 28, .10);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(54, 43, 28, .07);
  backdrop-filter: blur(6px);
}
.checkin-head {
  padding: 22px;
}
.checkin-head h1,
.checkin-success h1 {
  margin: 0 0 10px;
  font-size: 30px;
}
.checkin-head p:last-child,
.checkin-success p {
  margin-bottom: 0;
  color: var(--muted);
}
.checkin-panel {
  display: grid;
  gap: 20px;
  padding: 22px;
}
.checkin-panel h2 {
  margin: 0;
  font-size: 22px;
}
.spot-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.spot-choice {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(54, 43, 28, .10);
  border-radius: 8px;
  background: rgba(255, 254, 250, .58);
}
.spot-choice[hidden] {
  display: none;
}
.checkin-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.checkin-upload {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 150px;
  margin: 0;
  padding: 20px;
  border: 1px dashed rgba(36, 94, 168, .42);
  border-radius: 8px;
  background: #fffefa;
  color: var(--blue);
  cursor: pointer;
}
.single-upload-grid {
  grid-template-columns: minmax(0, 1fr);
}
.spot-checkin-upload {
  margin-top: 12px;
  min-height: 132px;
  padding: 16px;
  background: rgba(255, 254, 250, .88);
}
.checkin-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.checkin-upload span {
  align-self: end;
  font-size: 18px;
  font-weight: 850;
}
.checkin-upload small {
  align-self: start;
  color: var(--muted);
  line-height: 1.6;
}
.checkin-preview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.checkin-preview-grid.single {
  grid-template-columns: minmax(0, 1fr);
}
.checkin-preview-grid span {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(54, 43, 28, .10);
  border-radius: 8px;
  background: #f4efe6;
}
.checkin-preview-grid.single span {
  aspect-ratio: 4 / 3;
}
.checkin-preview-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.recipient-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(38, 115, 95, .16);
  border-radius: 8px;
  background: #fffefa;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.62);
}
.recipient-panel h2 {
  margin: 0;
  font-size: 22px;
}
.checkin-success {
  max-width: 760px;
  margin: 34px auto 42px;
  padding: 30px;
  text-align: center;
}
.gift-icon {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  overflow: visible;
}
.gift-glow {
  fill: rgba(238, 63, 47, .12);
  animation: giftGlow 2.2s ease-in-out infinite;
}
.gift-box {
  fill: #ef3b2f;
  transform-origin: 60px 78px;
  animation: giftBounce 1.9s ease-in-out infinite;
}
.gift-lid {
  transform-origin: 60px 58px;
  animation: giftLid 1.9s ease-in-out infinite;
}
.gift-ribbon {
  fill: #ffd45a;
}
.gift-bow {
  fill: #ff8a2a;
  transform-origin: 60px 42px;
  animation: giftBow 1.9s ease-in-out infinite;
}
.gift-bow.left {
  transform-origin: 58px 41px;
}
.gift-bow.right {
  transform-origin: 62px 41px;
}
@keyframes giftBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  38% { transform: translateY(-4px) scale(1.03); }
  56% { transform: translateY(1px) scale(.99); }
}
@keyframes giftLid {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  38% { transform: translateY(-7px) rotate(-3deg); }
  56% { transform: translateY(1px) rotate(1deg); }
}
@keyframes giftBow {
  0%, 100% { transform: scale(1); }
  38% { transform: scale(1.1); }
  56% { transform: scale(.98); }
}
@keyframes giftGlow {
  0%, 100% { transform: scale(.94); opacity: .68; }
  45% { transform: scale(1.06); opacity: 1; }
}
.official-link {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(100%, 630px);
  margin-top: 14px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 20px;
  border-radius: 8px;
  background: rgba(245, 154, 35, .12);
  color: var(--ink);
  line-height: 1.45;
}
.official-link a {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-weight: 850;
}
.official-link span,
.official-link em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}
.checkin-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
  text-align: left;
}
.checkin-summary div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(54, 43, 28, .10);
  border-radius: 8px;
  background: rgba(255, 253, 248, .74);
  backdrop-filter: blur(6px);
}
.checkin-summary b {
  color: var(--muted);
  font-size: 13px;
}
.checkin-summary span {
  font-weight: 800;
}

.poster-editor {
  display: grid;
  gap: 18px;
  margin: 24px auto 36px;
}
.editor-top,
.editor-config,
.editor-workspace {
  border: 1px solid rgba(54, 43, 28, .10);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(54, 43, 28, .07);
  backdrop-filter: blur(6px);
}
.editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}
.editor-top h1 { margin: 0; font-size: 30px; }
.editor-top .btn { margin: 0; }
.editor-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.poster-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.poster-steps button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(54, 43, 28, .10);
  border-radius: 8px;
  background: rgba(255, 254, 250, .78);
  color: #4d555c;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(54, 43, 28, .05);
}
.poster-steps b {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(20, 158, 216, .10);
  font-size: 13px;
}
.poster-steps span {
  min-width: 0;
  line-height: 1.35;
}
.poster-steps button.active {
  color: var(--ink);
  border-color: rgba(238, 63, 47, .30);
  background: var(--white);
}
.poster-steps button.active b {
  color: #fff;
  background: var(--red);
}
.step-panel[hidden] {
  display: none;
}
.editor-config {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}
.config-block > label {
  margin: 0 0 10px;
}
.difficulty-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.difficulty-tabs label {
  margin: 0;
}
.difficulty-tabs input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.difficulty-tabs span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(32,35,38,.14);
  border-radius: 8px;
  background: #fffefa;
  color: #4d555c;
  font-weight: 800;
}
.difficulty-tabs input:checked + span {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}
.template-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.template-option {
  margin: 0;
  cursor: pointer;
}
.template-option[hidden],
.template-option.is-hidden {
  display: none !important;
}
.template-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.template-option span {
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 12;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff1d8;
}
.template-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.template-option b {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.template-option input:checked + span {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 158, 216, .12);
}
.template-option input:checked ~ b {
  color: var(--blue);
}
.editor-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 560px) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
  padding: 18px;
}
.canvas-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,209,58,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,158,216,.06) 1px, transparent 1px),
    #fff8ed;
  background-size: 28px 28px;
}
.template-canvas {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1006 / 1563;
  overflow: hidden;
  border: 1px solid rgba(20,158,216,.26);
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 14px 34px rgba(37, 34, 36, .10);
}
.template-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.free-layer-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.slot-window {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  pointer-events: auto;
  transform-origin: center;
}
.slot-upload-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 40;
  min-height: 34px;
  padding: 0 14px;
  border: 2px solid rgba(20, 158, 216, .55);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 254, 250, .92);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px rgba(37, 34, 36, .12);
}
.slot-window.has-layer .slot-upload-button {
  display: none;
}
.slot-control-window {
  position: absolute;
  z-index: 1;
  border-radius: 8px;
  transform-origin: center;
  pointer-events: none;
}
.slot-control-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  border: 2px dashed rgba(20, 158, 216, .55);
  border-radius: inherit;
  pointer-events: none;
}
.slot-control-window.active::after {
  border-style: solid;
  border-color: rgba(238, 63, 47, .9);
  box-shadow: 0 0 0 3px rgba(238, 63, 47, .08);
}
.template-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.control-layer-stage {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.free-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.free-layer {
  position: absolute;
  transform-origin: center;
  touch-action: none;
  cursor: grab;
}
.free-layer.active {
  outline: none;
}
.free-layer:active {
  cursor: grabbing;
}
.free-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}
.layer-controls {
  position: absolute;
  transform-origin: center;
  pointer-events: none;
}
.layer-controls.active {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}
.layer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.layer-actions button {
  min-height: 38px;
  border: 1px solid rgba(32,35,38,.14);
  border-radius: 8px;
  color: #343a40;
  background: #fffefa;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.layer-actions button:hover {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}
.editable-slot {
  position: absolute;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 0;
  margin: 0;
  border: 2px dashed rgba(20,158,216,.36);
  border-radius: 8px;
  background: #f2eadc;
  color: var(--green);
  cursor: pointer;
}
.editable-slot.main {
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}
.editable-slot[data-slot="1"] {
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}
.editable-slot[data-slot="2"] {
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}
.editable-slot.active {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(238,63,47,.10);
}
.editable-slot input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.slot-upload {
  position: relative;
  z-index: 3;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(20,158,216,.32);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 254, 250, .90);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 34, 36, .08);
}
.editable-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform .12s ease;
  touch-action: none;
  cursor: grab;
}
.editable-slot img:active { cursor: grabbing; }
.editable-slot.has-image .slot-upload {
  display: none;
}
.slot-tools {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.editable-slot.has-image.active .slot-tools {
  display: flex;
}
.slot-tools button {
  min-height: 30px;
  min-width: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(37, 34, 36, .78);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  pointer-events: auto;
}
.slot-tools button:hover {
  background: var(--red);
}
.editor-side {
  display: grid;
  gap: 16px;
}
.adjust-panel {
  width: min(430px, 100%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, .86);
}
.adjust-panel[hidden] {
  display: none;
}
.adjust-panel h3 {
  margin: 0 0 14px;
}
.adjust-panel label {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 8px;
}
.adjust-panel input[type="range"] {
  padding: 0;
}
.adjust-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a {
  padding: 8px 14px;
  border: 1px solid rgba(32,35,38,.14);
  border-radius: 999px;
  background: rgba(255,253,248,.78);
  color: #42494f;
}
.tabs a.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.detail { padding: 22px; }
.detail-cover {
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #315f86, #8f513f);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 850;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { margin: 20px 0 8px; }
.detail p { line-height: 1.8; }
.meta { color: var(--muted); }
.poster-view { max-width: 660px; margin: 30px auto; padding: 28px; text-align: center; }
.poster-view h1 { margin-top: 0; }
.poster-img { width: min(430px, 100%); margin: 0 auto; border-radius: 8px; box-shadow: 0 18px 42px rgba(54, 43, 28, .20); }
.work-card img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; background: #e8e1d5; }
.work-card div { padding: 13px; display: flex; flex-direction: column; gap: 6px; }
.work-card span, .empty { color: var(--muted); }
.empty { padding: 28px; border: 1px dashed rgba(32,35,38,.18); border-radius: 8px; background: rgba(255,253,248,.65); }
.source-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.source-strip img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

@media (max-width: 820px) {
  .notice-grid { grid-template-columns: 1fr; }
  .activity-notice { padding: 26px 20px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 34px 22px; }
  .hero::before { inset: 14px; }
  .hero-card { min-height: 150px; }
  .spot-grid, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0 14px; }
  .site-header nav { gap: 0; font-size: 11px; }
  .flow-strip { grid-template-columns: repeat(2, 1fr); }
  .activity-panel,
  .poster-builder { grid-template-columns: 1fr; }
  .checkin-upload-grid,
  .checkin-summary,
  .spot-choice-grid {
    grid-template-columns: 1fr;
  }
  .editor-top {
    align-items: stretch;
    flex-direction: column;
  }
  .editor-top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .editor-top-actions .btn {
    width: 100%;
  }
  .poster-steps {
    grid-template-columns: 1fr;
  }
  .editor-config,
  .editor-workspace { grid-template-columns: 1fr; }
  .activity-story {
    height: calc(100vh - 76px);
    margin-top: -24px;
  }
  .activity-screen {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 76px);
    padding: 34px 18px 88px;
  }
  .activity-screen h1 {
    font-size: clamp(38px, 12vw, 58px);
  }
  .activity-visual {
    min-height: 210px;
  }
  .activity-step-grid,
  .activity-example-row,
  .activity-prize-row,
  .join-grid {
    grid-template-columns: 1fr;
  }
  .prize-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activity-fixed-cta {
    display: flex;
  }
  .join-progress {
    grid-template-columns: 1fr;
  }
  .social-example-grid {
    grid-template-columns: 1fr;
  }
  .difficulty-tabs {
    gap: 6px;
  }
  .difficulty-tabs span {
    min-height: 40px;
    padding: 0 6px;
    font-size: 14px;
  }
  .template-picker { grid-template-columns: repeat(2, 1fr); }
  .upload-slots { grid-template-columns: 1fr; }
  .phone-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
  }
  .legal-subtext {
    margin-left: 28px;
  }
}

@media (max-width: 480px) {
  .site-header {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
  }
  .brand img {
    width: min(150px, 42vw);
  }
  .user-nav {
    width: auto;
    justify-content: flex-end;
  }
  .page {
    width: 100vw;
    max-width: 100vw;
    padding-right: 18px;
    padding-left: 18px;
    overflow-x: hidden;
  }
  .form-panel {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    margin-top: 18px;
    margin-right: auto;
    margin-left: auto;
    padding: 22px 18px;
  }
  .form-panel p,
  .legal-subtext,
  .agree-line span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .auth-tabs a {
    min-width: 0;
  }
  .phone-row {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .spot-grid, .work-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .home-block-title h1 { font-size: 40px; }
  .flow-strip { grid-template-columns: 1fr; }
  .editor-top-actions {
    grid-template-columns: 1fr;
  }
  .activity-step-grid {
    grid-template-columns: 1fr;
  }
  .social-example-card {
    grid-template-columns: 1fr;
  }
  .social-example-thumb,
  .prize-image {
    width: 100%;
  }
  .screenshot-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activity-side-nav {
    right: 0;
    top: 48%;
    gap: 6px;
  }
  .activity-side-nav a {
    width: 42px;
    min-height: 94px;
    padding: 10px 6px;
    font-size: 15px;
    letter-spacing: 1px;
  }
}

/* Logo color theme: Truly Enjoy Guangdong */
:root {
  --paper: #fff8ed;
  --paper-deep: #ffe7bf;
  --ink: #252224;
  --muted: #756c70;
  --blue: #149ed8;
  --red: #ee3f2f;
  --orange: #f59a23;
  --green: #48b755;
  --gold: #ffd13a;
  --white: rgba(255, 253, 248, .74);
  --shadow: 0 18px 45px rgba(37, 34, 36, .10);
}

body {
  background: #fff3b9;
}

.site-header {
  min-height: 86px;
  background: rgba(255, 254, 250, .94);
}

.brand {
  min-width: 0;
}

.brand::before {
  display: none;
}

.brand img {
  width: 180px;
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

.user-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(20, 158, 216, .28);
  border-radius: 999px;
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 8px 18px rgba(37, 34, 36, .08);
}

.site-header nav .lang-switch,
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.site-header nav .lang-switch:hover,
.lang-switch:hover {
  background: rgba(20, 158, 216, .10);
  color: var(--blue);
}

.site-header nav .lang-switch.active,
.lang-switch.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 7px 16px rgba(20, 158, 216, .22);
}

.login-button,
.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  color: #000;
  background: var(--red);
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(238, 63, 47, .20);
}

.logout-button {
  color: #000;
  background: rgba(255, 253, 248, .82);
  border: 1px solid rgba(238, 63, 47, .22);
  box-shadow: none;
}

.login-button:hover {
  background: #d93427;
}

.logout-button:hover {
  background: rgba(238, 63, 47, .08);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange) 38%, var(--green) 68%, var(--blue));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(37, 34, 36, .16);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-notice,
.hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(20, 158, 216, .14), transparent 30%),
    radial-gradient(circle at 12% 16%, rgba(238, 63, 47, .13), transparent 28%),
    linear-gradient(145deg, #fffefa 0%, #fff0d3 100%);
}

.activity-notice::after,
.hero::after {
  color: rgba(238, 63, 47, .08);
}

.notice-list,
.activity-panel,
.flow-strip div {
  background: rgba(255, 254, 250, .84);
}

.notice-list b,
.activity-panel b,
.flow-strip b {
  color: var(--blue);
}

.eyebrow,
.eyebrow::before {
  color: var(--red);
}

.eyebrow::before {
  background: var(--red);
}

.eyebrow.small {
  color: var(--orange);
}

.eyebrow.small::before {
  background: var(--orange);
}

.btn.primary {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 12px 24px rgba(238, 63, 47, .18);
}

.btn.ghost {
  color: var(--blue);
  border-color: rgba(20, 158, 216, .34);
  background: rgba(255, 254, 250, .78);
}

.thumb {
  background:
    linear-gradient(rgba(32,35,38,.10), rgba(32,35,38,.20)),
    linear-gradient(135deg, var(--red), var(--orange) 36%, var(--green) 68%, var(--blue));
}

.card-action,
.section-title a {
  color: var(--blue);
}

.mock-head,
.segmented input:checked + span,
.tabs a.active {
  background: var(--blue);
}

.mock-slot,
.upload-slot {
  border-color: rgba(20, 158, 216, .38);
}

@media (max-width: 820px) {
  body {
    background: #fff3b9;
  }

  body::before {
    background:
      url("/static/petals_individual/petal_01.png") no-repeat -24px 20px / 72px auto,
      url("/static/petals_individual/petal_03.png") no-repeat calc(100% - 54px) 28px / 88px auto,
      url("/static/petals_individual/petal_02.png") no-repeat -26px calc(100% - 74px) / 82px auto,
      url("/static/petals_individual/petal_06.png") no-repeat calc(100% - 70px) calc(100% - 68px) / 74px auto;
    opacity: .5;
  }

  body::after {
    background:
      url("/static/petals_individual/petal_04.png") no-repeat 50% 78px / 84px auto,
      url("/static/petals_individual/petal_05.png") no-repeat 50% calc(100% - 118px) / 104px auto;
    opacity: .1;
  }

  .site-header {
    min-height: 76px;
  }

  .brand img {
    width: 180px;
    max-height: 64px;
  }

  .user-nav {
    gap: 8px;
  }

  .lang-toggle {
    padding: 2px;
  }

  .site-header nav .lang-switch,
  .lang-switch {
    min-width: 42px;
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .site-header {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand img {
    width: min(150px, 42vw);
    max-height: 58px;
  }

  .user-nav {
    width: auto;
    justify-content: flex-end;
    gap: 6px;
  }

  .lang-toggle {
    gap: 1px;
    padding: 2px;
    margin-right: 10px;
  }

  .site-header nav .lang-switch,
  .lang-switch {
    min-width: 36px;
    min-height: 28px;
    padding: 0 7px;
    font-size: 11px;
  }

  .logout-button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .page {
    width: 100vw;
    max-width: 100vw;
    padding-right: 18px;
    padding-left: 18px;
    overflow-x: hidden;
  }

  .form-panel {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    margin: 18px auto 30px;
    padding: 22px 18px;
  }

  .form-panel p,
  .legal-subtext,
  .agree-line span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .auth-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-tabs a {
    min-width: 0;
  }

  .phone-row {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}
