.champagne-theme {
  --champagne-ink: #46290f;
  --champagne-gold: #ae7031;
}
#publicPage.champagne-theme,
#phonePage.champagne-theme {
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
#publicPage.champagne-theme {
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background-attachment: scroll;
}
#publicProfile.champagne-theme {
  max-width: 790px;
  padding-inline: clamp(15px, 3.7vw, 30px);
  --public-pad-top: clamp(39px, 10vw, 80px);
  padding-top: calc(var(--public-pad-top) + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(90px, 23vw, 180px);
}
.champagne-theme.profile-page { color: var(--champagne-ink) !important; }
.profile-page.champagne-theme .profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30%;
  column-gap: 3.5%;
  row-gap: 0;
  align-items: end;
  padding: 30px 0 0;
  border: 0;
}
.champagne-theme .profile-intro > .profile-copy-column { align-items: center; padding-top: 0; }
.profile-page.champagne-theme .profile-copy-column .page-name {
  position: relative;
  margin: 0 auto 5px;
  color: #563010;
  font-size: clamp(18px, 6.6cqi, 50px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: .055em;
  white-space: normal;
  text-shadow: 0 1px #fff9e9, 0 3px 8px #bd82325c;
}
.champagne-theme .page-name::before,
.champagne-theme .profile-tools-column::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 23%;
  aspect-ratio: 105 / 63;
  background: url('/champagne/crown.png') center / contain no-repeat;
  mix-blend-mode: multiply;
  transform: translateX(-50%);
  pointer-events: none;
}
.champagne-theme .page-name::after {
  content: '';
  position: absolute;
  top: 10%;
  left: -1%;
  width: 8%;
  height: 110%;
  background: url('/champagne/laurel.png') center / contain no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.champagne-theme .visitor-share-home {
  margin: 3px 0 5px;
  padding: 4px 13px;
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(10px, 2.9cqi, 22px);
}
.champagne-theme .profile-intro .champagne-bio {
  margin: 7px 0 0;
  color: #623c1c;
  opacity: 1;
  font-size: clamp(9px, 2.65cqi, 20px);
}
.champagne-theme .champagne-bio .bio-line { white-space: normal; line-height: 1.75; min-height: 0; }
.champagne-theme .profile-intro > .profile-tools-column { position: relative; align-self: end; margin-bottom: 3%; }
.champagne-theme .profile-tools-column::before { width: 43%; bottom: 88%; z-index: 1; }
.champagne-theme .profile-intro .profile-tools-column .page-avatar {
  width: 100%;
  border: clamp(2px, .6cqi, 5px) solid #fff0bf;
  box-shadow: 0 0 0 1px #b77935, 0 6px 19px #b479379e, 0 0 20px #fff7d5;
}
.champagne-theme .profile-tools-column::after {
  content: '';
  position: absolute;
  inset: 35% -20% 11%;
  border: 2px solid #fff5cf;
  border-radius: 50%;
  transform: rotate(-26deg);
  box-shadow: 0 0 2px #b87630, 0 1px 2px #b87630;
  pointer-events: none;
}
.champagne-theme .profile-search-caption { display: none !important; }
.profile-page.champagne-theme .profile-header-actions {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 3px;
  margin-top: 6%;
}
.champagne-theme .profile-notice-actions { display: contents; }
.champagne-theme .profile-header-actions > :is(.homepage-motion-toggle, .profile-search-panel),
.champagne-theme .profile-header-actions .profile-notice-button {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  max-width: none;
  margin: 0;
}
.champagne-theme .profile-notice-button, .champagne-theme .homepage-motion-toggle,
.champagne-theme .profile-search-field {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none !important;
  box-shadow: none;
  color: #422914;
  text-align: center;
  font: inherit;
  font-size: clamp(9px, 2.65cqi, 20px);
}
.champagne-theme .profile-header-actions .profile-search-panel { margin: 0; padding: 0; }
.champagne-theme .profile-search-field { display: grid; gap: 2px; justify-items: stretch; }
.champagne-theme .profile-search-field::after { display: none; }
.profile-page.champagne-theme .profile-search-field::before,
.champagne-theme .profile-notice-button::before,
.champagne-theme .homepage-motion-toggle::before {
  content: attr(data-champagne-icon);
  position: static;
  display: grid;
  place-items: center;
  width: clamp(31px, 10cqi, 68px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 4px;
  border: 1px solid #e5b56e;
  border-radius: 50%;
  color: var(--champagne-gold);
  background: radial-gradient(circle at 36% 20%, #fffcf4, var(--champagne-action-color, #fff4dc) 63%, #fff6e2);
  box-shadow: inset 0 0 0 2px #fffd, inset 0 -4px 10px #fff8, 0 4px 8px #b4844947;
  font: 400 clamp(17px, 6cqi, 42px) / 1 system-ui;
  opacity: 1;
}
.champagne-theme [data-notice-button="announcement"] { --champagne-action-icon: url('/champagne/notice-icon.png'); }
.champagne-theme [data-notice-button="updates"] { --champagne-action-icon: url('/champagne/update-icon.png'); }
.champagne-theme .homepage-motion-toggle { --champagne-action-icon: url('/champagne/motion-icon.png'); }
.champagne-theme .profile-search-field { --champagne-action-icon: url('/champagne/search-icon.png'); }
.profile-page.champagne-theme .profile-search-field::before,
.champagne-theme .profile-notice-button::before,
.champagne-theme .homepage-motion-toggle::before {
  content: '';
  background: linear-gradient(var(--champagne-action-tint, transparent), var(--champagne-action-tint, transparent)), var(--champagne-action-icon) center / cover;
}
.champagne-theme .profile-search-field .profile-search-input {
  width: 100%;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff9;
  color: inherit;
  font: inherit;
  text-align: center;
}
.champagne-theme .profile-search-input::placeholder { opacity: 1; }
.champagne-theme .profile-decor-slot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin: 3.5% 0 1%;
}
.champagne-theme :is(.visitor-decor-home, .visitor-share-home) {
  background: linear-gradient(165deg,#fffdf4 4%,var(--champagne-action-color, #ead1ad) 44%,#fff6de 72%,#e7c99c) !important;
  border: 1px solid #fff6d7;
  color: #482b12;
  box-shadow: inset 0 0 0 1px #fff7, inset 0 0 10px #fff9, 0 4px 11px #a8753f40;
}
.champagne-theme .visitor-decor-home {
  min-width: min(58%, 100%);
  padding: 2% 4%;
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(13px, 3.8cqi, 27px);
  border-radius: 999px;
}
.champagne-theme .visitor-decor-home::after { content: '›'; margin-left: .6em; }
.champagne-theme .page-modules { gap: clamp(7px, 2cqi, 15px); margin-top: 4%; }
.champagne-theme .page-link.champagne-card {
  position: relative;
  min-height: clamp(46px, 15.6cqi, 118px);
  padding: 1% 4.5%;
  border: 1px solid #fff9e9;
  border-radius: var(--champagne-card-radius, 999px) !important;
  overflow: hidden;
  color: var(--champagne-card-ink, #49290f) !important;
  background: linear-gradient(165deg,var(--champagne-card-start, #fffdf5e8) 2%,var(--champagne-card-end, #f1ded0b5) 49%,var(--champagne-card-start, #fffdf5e8) 98%) !important;
  box-shadow: inset 0 0 0 1px #fffc, inset 0 -5px 10px #fff7, 0 4px 12px #895c3936;
  grid-template-columns: clamp(36px, 14cqi, 100px) minmax(0, 1fr) 4%;
  column-gap: 3%;
}
.champagne-theme .page-link.champagne-card:not([data-card-compact]) > .link-symbol {
  width: 100%; max-width: 100%; height: auto; aspect-ratio: 1;
  border-radius: 50%; background: #fff7;
  box-shadow: 0 2px 5px #78573627, inset 0 0 4px #fff;
}
.champagne-theme .champagne-card .page-link-title {
  position: relative; z-index: 1; width: 100%;
  color: inherit; opacity: 1 !important;
  font: 700 clamp(12px, 3.75cqi, 29px) / 1.2 "Songti SC", "Noto Serif CJK SC", SimSun, serif !important;
}
.champagne-theme .champagne-chevron {
  grid-column: 3; grid-row: 1;
  z-index: 1; width: 55%; aspect-ratio: 1;
  border-top: 1.5px solid; border-right: 1.5px solid;
  transform: rotate(45deg);
}
.champagne-theme .champagne-card > .champagne-card-art {
  position: absolute; inset: 8% 9% 7% auto; width: 25%; height: 85%;
  object-fit: contain; object-position: center right;
  mix-blend-mode: multiply; opacity: .52; pointer-events: none;
}
.champagne-theme[data-card-shape="rounded"] { --champagne-card-radius: 18px; }
.champagne-theme[data-card-shape="square"] { --champagne-card-radius: 0px; }
.champagne-theme[data-action-shape="rounded"] { --champagne-action-radius: 13px; }
.champagne-theme[data-action-shape="square"] { --champagne-action-radius: 0px; }
.champagne-theme .profile-header-actions :is(.profile-notice-button, .homepage-motion-toggle, .profile-search-field)::before { border-radius: var(--champagne-action-radius, 50%); }
.champagne-theme .page-link.champagne-card[data-card-compact] { grid-template-columns: var(--compact-icon-size) minmax(0, 1fr) 4%; }
#publicProfile.champagne-theme .page-link.champagne-card[data-control-skin]:not([data-control-skin="original"]),
#phonePage.champagne-theme .page-link.champagne-card[data-control-skin]:not([data-control-skin="original"]) {
  background: var(--skin-bg) !important;
  color: var(--skin-ink, #26312c) !important;
}
.champagne-art-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.champagne-art-preview { display: block; width: 110px; height: 65px; object-fit: contain; }
.champagne-theme .profile-music { position: absolute; top: -1%; right: -4px; margin: 0; }
.champagne-theme .profile-music-disc { width: clamp(22px, 6cqi, 38px); height: auto; aspect-ratio: 1; }
#phonePage.champagne-theme { padding-bottom: 55px; }

.profile-page.champagne-theme .profile-intro .profile-search-field {
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.profile-page.champagne-theme .profile-intro .profile-search-field::before { position: static; }
.profile-page.champagne-theme .profile-intro .profile-search-field::after { display: none; }
.champagne-theme .page-link.champagne-card:not(:has(> .link-symbol)) > .page-link-title { grid-column: 1 / 3; }
.champagne-theme .page-name::before, .champagne-theme .page-name::after,
.champagne-theme .profile-tools-column::before { display: none; }

.champagne-decoration { display: inline-block; color: var(--decoration-gold, #ae7031); font-family: Georgia, "Segoe UI Symbol", serif; font-variant-emoji: text; text-shadow: 0 1px #fff9, 0 2px 4px #88592b52; }
.champagne-theme :is(.page-name, .profile-tools-column) > .champagne-decoration {
  position: absolute; z-index: 2; left: 50%; bottom: 98%; translate: -50% 0;
  font-size: clamp(17px, 6cqi, 45px); line-height: .95; pointer-events: none;
}
.champagne-theme .profile-tools-column > .champagne-decoration { bottom: 89%; }
.champagne-theme .profile-tools-column[data-champagne-frame="none"]::after { display: none; }
.champagne-theme .profile-tools-column[data-champagne-frame="none"] .page-avatar { border-color: transparent; box-shadow: none; }
.champagne-theme .profile-tools-column:not([data-champagne-frame="none"]) .page-avatar {
  border-color: var(--decoration-gold);
  box-shadow: 0 0 0 1px #fff7df, 0 5px 14px var(--decoration-gold);
}
.champagne-theme .profile-tools-column:is([data-champagne-frame="diamond"],[data-champagne-frame="snow"],[data-champagne-frame="pearl"],[data-champagne-frame="spark"]) .page-avatar { border-style: double; }
.champagne-theme .profile-tools-column:is([data-champagne-frame="flower"],[data-champagne-frame="star"],[data-champagne-frame="lotus"],[data-champagne-frame="clover"]) .page-avatar { border-style: dotted; }
.champagne-theme .profile-tools-column::after { border-color: var(--decoration-gold, #fff0bf); }
.champagne-theme .profile-tools-column { isolation: isolate; }
.champagne-theme .profile-tools-column .page-avatar { position: relative; z-index: 0; }
.champagne-theme .profile-tools-column:not([data-champagne-frame="none"])::before,
.champagne-theme .profile-tools-column:not([data-champagne-frame="none"])::after {
  display: block;
  content: '';
  position: absolute;
  inset: 35% -10% 11%;
  width: auto;
  aspect-ratio: auto;
  border: 2px solid var(--decoration-gold, #fff0bf);
  border-radius: 50%;
  background: none;
  mix-blend-mode: normal;
  box-shadow: 0 0 2px #b87630;
  transform: rotate(-26deg);
  pointer-events: none;
}
.champagne-theme .profile-tools-column.champagne-frame-layer:not([data-champagne-frame="none"])::before { z-index: -1; clip-path: inset(-8px -8px 50% -8px); }
.champagne-theme .profile-tools-column:not([data-champagne-frame="none"])::after { z-index: 1; clip-path: inset(50% -8px -8px -8px); }

.champagne-share-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px; max-width: 100%; }
.champagne-theme .champagne-share-row .profile-music { position: relative; inset: auto; align-self: center; margin: 0; }
.champagne-theme .champagne-share-row .profile-music-disc {
  width: clamp(24px, 7.2cqi, 40px); height: auto; aspect-ratio: 1; padding: 0; border-radius: 50%;
}

.profile-page.champagne-theme .profile-header-actions { margin-top: 2.3%; align-items: start; }
.profile-page.champagne-theme .profile-header-actions :is(.profile-notice-button,.homepage-motion-toggle,.profile-search-field) {
  border: 0 !important; background: transparent !important; box-shadow: none !important;
  font-size: clamp(9px, 2.35cqi, 17px); min-height: 0;
}
.profile-page.champagne-theme .profile-header-actions :is(.profile-notice-button,.homepage-motion-toggle,.profile-search-field)::before { display: none; }
.champagne-entry-icon {
  display: grid; place-items: center; margin: 0 auto 4px;
  width: clamp(27px, 7.8cqi, 53px); aspect-ratio: 1;
  border: 1px solid #dfb572;
  border-radius: var(--champagne-action-radius, 50%);
  background: var(--entry-custom-bg, radial-gradient(circle at 35% 20%, #fffdf7, var(--champagne-action-color, #fff4dc)));
  color: #ab7135; box-shadow: inset 0 0 0 2px #fff8, 0 2px 5px #ae79442b;
}
.profile-page.champagne-theme .champagne-entry-icon[data-control-skin] {
  background: var(--entry-custom-bg, var(--skin-bg, radial-gradient(circle at 35% 20%, #fffdf7, var(--champagne-action-color, #fff4dc)))) !important;
  border-radius: var(--champagne-action-radius, 50%);
}
.champagne-entry-icon:empty::after { font-size: clamp(14px, 4.6cqi, 29px); line-height: 1; }
[data-notice-button="announcement"] .champagne-entry-icon:empty::after { content: '♧'; }
[data-notice-button="updates"] .champagne-entry-icon:empty::after { content: '⟳'; }
.homepage-motion-toggle .champagne-entry-icon:empty::after { content: 'ϟ'; }
.profile-search-field .champagne-entry-icon:empty::after { content: ''; width: 32%; aspect-ratio: 1; border: 1.5px solid currentColor; border-radius: 50%; box-shadow: 4px 4px 0 -3px currentColor; }
.champagne-theme .profile-header-actions .profile-search-input { background: transparent; padding: 0 2px; }
.profile-page.champagne-theme .profile-header-actions > .profile-search-panel { flex: 1.55 1 0; }
.profile-page.champagne-theme .profile-header-actions .profile-search-field {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 3px 8px;
  border: 1px solid #fff9 !important;
  border-radius: 999px;
  background: var(--skin-bg, #fff9) !important;
}
.profile-page.champagne-theme .profile-header-actions .profile-search-field::before {
  display: none;
  content: '';
  position: static;
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0 2px 2px 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  box-shadow: 3px 3px 0 -2px currentColor;
}
.profile-page.champagne-theme .profile-header-actions .profile-search-input { text-align: left; }
.champagne-theme :is(.profile-search-field,.visitor-decor-home) > .champagne-entry-icon {
  display: inline-grid;
  flex: none;
  width: 1.05em;
  height: 1.05em;
  margin: 0;
  border: 0;
  background: none;
  box-shadow: none;
  vertical-align: -.08em;
}
.champagne-theme .visitor-decor-home > .champagne-entry-icon { margin-right: .5em; }
.champagne-theme .visitor-decor-home .champagne-entry-icon:empty::after { content: '◇'; font-size: 1em; }
.champagne-theme .profile-search-field .champagne-entry-icon:empty::after { width: 65%; box-shadow: 4px 4px 0 -3px currentColor; }
.champagne-theme .champagne-card > .champagne-card-art {
  -webkit-mask-image: radial-gradient(ellipse 68% 80% at center, black 40%, transparent 91%);
  mask-image: radial-gradient(ellipse 68% 80% at center, black 40%, transparent 91%);
}
.champagne-theme .champagne-card > .champagne-card-symbol {
  position: absolute; right: 12%; top: 50%; translate: 0 -50%;
  font-size: clamp(21px, 9cqi, 65px); opacity: .34; pointer-events: none;
}

#unifiedAppearance { padding: 15px; }
.unified-appearance-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
#unifiedAppearance > details { border: 1px solid #e2e8db; border-radius: 9px; margin-bottom: 8px; }
#unifiedAppearance > details > summary { padding: 12px 15px; font-weight: 600; cursor: pointer; }
#unifiedAppearance > details > :is(section,.settings-card) { box-shadow: none; border: 0; margin: 0; }
#unifiedAppearance > details > .minor-heading { margin-left: 20px; }
.champagne-background-switch { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; cursor: pointer; }
.champagne-background-switch input { appearance: none; width: 52px; height: 29px; margin: 0; border: 1px solid #a9b7a0; border-radius: 20px; background: #e2e9dc; cursor: pointer; }
.champagne-background-switch input::before { content: ''; display: block; width: 21px; height: 21px; margin: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 4px #183c2950; }
.champagne-background-switch input:checked { background: #356854; }
.champagne-background-switch input:checked::before { transform: translateX(23px); }
.champagne-crop { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; touch-action: none; cursor: grab; border: 1px solid #b8c9b4; background: repeating-conic-gradient(#e5e7e3 0% 25%, #fff 0% 50%) 0 0 / 16px 16px; }
.champagne-crop-options { margin: 12px 0; }
.champagne-art-preview { aspect-ratio: 16 / 9; width: 144px; height: auto; }
