@font-face {
  font-family: "CookieRun KR";
  src: url("../cookie-dex/assets/fonts/CookieRun-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.community-guides-page {
  --cg-hero-image: image-set(
    url("../assets/community-guides-page-hero.webp") type("image/webp"),
    url("../assets/community-guides-page-hero.png") type("image/png")
  );
  --cg-panel: rgba(28, 14, 45, 0.82);
  --cg-panel-strong: rgba(44, 22, 65, 0.94);
  --cg-line: rgba(235, 196, 255, 0.22);
  --cg-line-strong: rgba(248, 209, 255, 0.44);
  --cg-text: #fff7ff;
  --cg-muted: rgba(233, 219, 244, 0.78);
  --cg-soft: rgba(255, 243, 255, 0.9);
  --cg-pink: #f07ab9;
  --cg-gold: #ffd66b;
  --cg-blue: #83d4ff;
  --cg-green: #a9e889;
  --cg-shadow: 0 18px 46px rgba(0, 0, 0, 0.44);
  --cg-sticky-builder-top: 5.55rem;
  --profile-shared-frame-shadow-effect:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(0, 0, 0, 0.68),
    0 0 36px rgba(0, 0, 0, 0.36);
  --guild-text-primary: #f7f2ff;
  --guild-text-secondary: #e9defa;
  --guild-text-muted: #d7c7ee;
  --guild-border-soft: rgba(220, 196, 255, 0);
  --guild-rarity-fill-default: linear-gradient(155deg, #7c6498 0%, #665083 52%, #4f3f68 100%);
  --guild-rarity-fill-common: linear-gradient(155deg, #8f7762 0%, #a78d74 52%, #c0a690 100%);
  --guild-rarity-fill-rare: linear-gradient(155deg, #3f7fa8 0%, #4ca2d5 52%, #6fb7e0 100%);
  --guild-rarity-fill-special: linear-gradient(155deg, #d5b74b 0%, #fbda5d 52%, #ffe892 100%);
  --guild-rarity-fill-epic: linear-gradient(155deg, #c57fa4 0%, #f497c7 55%, #f6b4d7 100%);
  --guild-rarity-fill-super-epic: linear-gradient(155deg, #ac5f8f 0%, #c96fb0 44%, #8b4eb0 100%);
  --guild-rarity-fill-dragon: linear-gradient(155deg, #b7734d 0%, #c95c4b 46%, #8ea64d 100%);
  --guild-rarity-fill-legendary: linear-gradient(155deg, #6bc9cf 0%, #6e9bd7 44%, #66c883 100%);
  --guild-rarity-fill-ancient: linear-gradient(155deg, #6e3f9b 0%, #8b4eb3 48%, #4e3590 100%);
  --guild-rarity-fill-witch: linear-gradient(155deg, #9b3f86 0%, #c45aa7 50%, #7e2e73 100%);
  --guild-rarity-fill-beast: linear-gradient(155deg, #5a1d25 0%, #7b2a35 52%, #4b1820 100%);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: #090612;
  color: var(--cg-text);
}

.community-guides-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--cg-hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.12);
  transform-origin: center;
  filter: blur(6px);
  opacity: 0.76;
}

.community-guides-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 188, 217, 0.18), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(118, 210, 255, 0.16), transparent 38%),
    linear-gradient(rgba(7, 6, 16, 0.72), rgba(7, 6, 16, 0.9));
}

.community-guides-page > .route-main,
.community-guides-page > .guide-modal-shell,
.community-guides-page > .route-footer,
.community-guides-page > .bento-footer {
  position: relative;
  z-index: 1;
}

.community-guides-page [hidden] {
  display: none !important;
}

.community-guides-page .route-main.community-guides-main {
  width: min(1600px, calc(100% - 2rem));
  margin: 1.35rem auto 3.4rem;
  display: grid;
  gap: 0.9rem;
}

.community-guides-page .premium-glass {
  border: 1px solid var(--cg-line);
  background: var(--cg-panel);
  box-shadow: var(--cg-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.community-guides-hero,
.guide-browser,
.guide-builder-card {
  border-radius: 0.84rem;
  padding: 1rem 1.06rem;
}

.community-guides-page .community-guides-hero {
  min-height: clamp(13rem, 28vw, 19rem);
  display: grid;
  align-content: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 6, 18, 0.78), rgba(9, 6, 18, 0.34) 58%, rgba(9, 6, 18, 0.7)),
    var(--cg-hero-image);
  background-position: center;
  background-size: cover;
  box-shadow: var(--cg-shadow);
}

.community-guides-hero h1,
.guide-browser h2,
.guide-builder-card h2,
.guide-modal-head h2 {
  margin: 0;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  letter-spacing: 0;
}

.community-guides-hero h1 {
  margin-top: 0.16rem;
  font-size: clamp(1.78rem, 3.8vw, 2.48rem);
  line-height: 1.05;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.62);
}

.community-guides-hero .eyebrow,
.community-guides-hero .hero-copy,
.guide-status,
.guide-auth-notice,
.guide-card-meta,
.guide-element-help,
.guide-modal-meta {
  margin: 0;
  color: var(--cg-muted);
}

.community-guides-hero .hero-copy {
  margin-top: 0.4rem;
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.38;
}

.guide-browser,
.guide-builder-card {
  display: grid;
  gap: 0.72rem;
}

.guide-builder-card.is-collapsed {
  gap: 0;
}

.guide-builder-body {
  display: grid;
  gap: 0.72rem;
}

.guide-browser-head,
.guide-builder-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.guide-builder-head {
  position: sticky;
  top: var(--cg-sticky-builder-top);
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, auto);
  margin: -1rem -1.06rem 0;
  padding: 0.82rem 1.06rem;
  border-bottom: 1px solid var(--cg-line);
  border-radius: 0.84rem 0.84rem 0 0;
  background:
    linear-gradient(180deg, rgba(36, 16, 54, 0.98), rgba(24, 12, 40, 0.93)),
    var(--cg-panel-strong);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.guide-builder-card.is-collapsed .guide-builder-head {
  border-bottom-color: transparent;
  border-radius: 0.84rem;
}

.guide-builder-toolbar {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}

.guide-browser h2,
.guide-builder-card h2,
.guide-modal-head h2 {
  font-size: clamp(1rem, 2vw, 1.34rem);
  line-height: 1.14;
}

.guide-status.is-error {
  color: #ffb3c7;
}

.guide-status.is-success {
  color: #bff6a5;
}

.guide-builder-head-actions,
.guide-add-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
  justify-content: flex-end;
}

.guide-builder-card.is-collapsed .guide-add-toolbar {
  display: none;
}

.guide-btn,
.guide-modal-close {
  min-height: 2rem;
  border: 1px solid rgba(255, 221, 255, 0.35);
  border-radius: 0.54rem;
  padding: 0.38rem 0.7rem;
  background: linear-gradient(135deg, #9d2c68, #e15c99);
  color: #fff;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.68rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.guide-btn-secondary,
.guide-modal-close {
  background: linear-gradient(135deg, rgba(19, 54, 82, 0.96), rgba(35, 93, 122, 0.92));
}

.guide-btn:disabled,
.guide-modal-close:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.guide-btn:hover,
.guide-btn:focus-visible,
.guide-modal-close:hover,
.guide-modal-close:focus-visible {
  outline: none;
  border-color: rgba(255, 246, 255, 0.7);
  transform: translateY(-1px);
}

.guide-category-tabs {
  display: flex;
  gap: 0.42rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.guide-category-tab {
  flex: 0 0 auto;
  min-height: 1.92rem;
  border: 1px solid var(--guide-category-border, rgba(255, 221, 255, 0.28));
  border-radius: 999px;
  padding: 0.26rem 0.72rem;
  background: var(--guide-category-tab-bg, rgba(11, 19, 36, 0.74));
  color: var(--guide-category-text, var(--cg-soft));
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.62rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.guide-category-tab.is-active {
  border-color: var(--guide-category-active-border, rgba(255, 222, 132, 0.72));
  background: var(--guide-category-active-bg, linear-gradient(135deg, rgba(113, 66, 10, 0.96), rgba(196, 116, 34, 0.92)));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 18px var(--guide-category-glow, rgba(255, 214, 107, 0.2));
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.74rem;
}

.guide-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid var(--cg-line);
  border-radius: 0.62rem;
  padding: 0.68rem 0.75rem;
  background: rgba(9, 12, 26, 0.62);
  color: var(--cg-muted);
}

.guide-card {
  border: 1px solid var(--cg-line);
  border-radius: 0.72rem;
  background: rgba(11, 12, 28, 0.74);
  overflow: hidden;
  cursor: pointer;
}

.guide-card.is-expanded {
  grid-column: 1 / -1;
}

.guide-card-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.54rem;
  padding: 0.72rem;
  cursor: pointer;
}

.guide-card-top-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  align-items: center;
}

.guide-card-toggle {
  appearance: none;
  border: 0;
  width: 100%;
  background: transparent;
  color: inherit;
  padding: 0;
  display: grid;
  align-content: start;
  text-align: left;
  cursor: pointer;
}

.guide-card-title {
  margin: 0;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.98rem;
  line-height: 1.18;
}

.guide-category-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 1.34rem;
  border: 1px solid var(--guide-category-border, rgba(255, 220, 132, 0.58));
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  background: var(--guide-category-badge-bg, rgba(99, 61, 14, 0.74));
  color: var(--guide-category-text, #fff7d8);
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.54rem;
  box-shadow: 0 0 14px var(--guide-category-glow, rgba(255, 214, 107, 0.14));
}

.guide-category-tone--arena {
  --guide-category-border: rgba(255, 128, 196, 0.58);
  --guide-category-active-border: rgba(255, 178, 220, 0.86);
  --guide-category-tab-bg: rgba(84, 25, 68, 0.7);
  --guide-category-badge-bg: rgba(122, 37, 92, 0.78);
  --guide-category-active-bg: linear-gradient(135deg, rgba(151, 42, 113, 0.98), rgba(229, 88, 154, 0.94));
  --guide-category-text: #ffe8f6;
  --guide-category-glow: rgba(255, 105, 180, 0.24);
}

.guide-category-tone--guild-boss {
  --guide-category-border: rgba(255, 143, 105, 0.62);
  --guide-category-active-border: rgba(255, 190, 142, 0.88);
  --guide-category-tab-bg: rgba(82, 32, 24, 0.7);
  --guide-category-badge-bg: rgba(125, 48, 31, 0.8);
  --guide-category-active-bg: linear-gradient(135deg, rgba(160, 56, 35, 0.98), rgba(226, 112, 61, 0.94));
  --guide-category-text: #fff0e5;
  --guide-category-glow: rgba(255, 124, 74, 0.23);
}

.guide-category-tone--story-campaign {
  --guide-category-border: rgba(146, 224, 132, 0.6);
  --guide-category-active-border: rgba(191, 244, 165, 0.86);
  --guide-category-tab-bg: rgba(29, 72, 46, 0.7);
  --guide-category-badge-bg: rgba(46, 103, 61, 0.78);
  --guide-category-active-bg: linear-gradient(135deg, rgba(55, 126, 70, 0.98), rgba(107, 179, 83, 0.94));
  --guide-category-text: #edffe8;
  --guide-category-glow: rgba(151, 230, 116, 0.22);
}

.guide-category-tone--cookie-alliance {
  --guide-category-border: rgba(124, 208, 255, 0.62);
  --guide-category-active-border: rgba(174, 230, 255, 0.88);
  --guide-category-tab-bg: rgba(23, 56, 84, 0.7);
  --guide-category-badge-bg: rgba(34, 84, 119, 0.8);
  --guide-category-active-bg: linear-gradient(135deg, rgba(38, 112, 152, 0.98), rgba(72, 163, 210, 0.94));
  --guide-category-text: #e8f8ff;
  --guide-category-glow: rgba(116, 205, 255, 0.24);
}

.guide-category-tone--cake-towers {
  --guide-category-border: rgba(193, 158, 255, 0.62);
  --guide-category-active-border: rgba(220, 197, 255, 0.88);
  --guide-category-tab-bg: rgba(55, 42, 96, 0.7);
  --guide-category-badge-bg: rgba(77, 58, 132, 0.8);
  --guide-category-active-bg: linear-gradient(135deg, rgba(99, 75, 164, 0.98), rgba(145, 107, 218, 0.94));
  --guide-category-text: #f4ecff;
  --guide-category-glow: rgba(177, 136, 255, 0.23);
}

.guide-category-tone--events {
  --guide-category-border: rgba(255, 218, 111, 0.64);
  --guide-category-active-border: rgba(255, 236, 158, 0.9);
  --guide-category-tab-bg: rgba(88, 67, 24, 0.7);
  --guide-category-badge-bg: rgba(126, 88, 22, 0.8);
  --guide-category-active-bg: linear-gradient(135deg, rgba(161, 112, 26, 0.98), rgba(224, 167, 57, 0.94));
  --guide-category-text: #fff7d8;
  --guide-category-glow: rgba(255, 207, 82, 0.24);
}

.guide-category-tone--other {
  --guide-category-border: rgba(198, 214, 230, 0.5);
  --guide-category-active-border: rgba(232, 240, 248, 0.78);
  --guide-category-tab-bg: rgba(45, 54, 68, 0.7);
  --guide-category-badge-bg: rgba(60, 69, 84, 0.8);
  --guide-category-active-bg: linear-gradient(135deg, rgba(82, 96, 114, 0.98), rgba(119, 134, 151, 0.94));
  --guide-category-text: #f2f7ff;
  --guide-category-glow: rgba(190, 210, 230, 0.18);
}

.guide-creator-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(190, 232, 255, 0.34);
  border-radius: 999px;
  padding: 0.16rem 0.48rem 0.16rem 0.18rem;
  background: rgba(14, 44, 70, 0.7);
  color: var(--cg-soft);
  text-decoration: none;
}

.guide-creator-avatar {
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.56rem;
}

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

.guide-creator-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 700;
}

.guide-source-badge {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 1.34rem;
  border: 1px solid rgba(255, 214, 107, 0.34);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  background: rgba(77, 54, 18, 0.66);
  color: #fff0bd;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.guide-source-badge:hover,
a.guide-source-badge:focus-visible {
  border-color: rgba(255, 232, 156, 0.78);
  color: #fff7d8;
  outline: none;
}

.guide-source-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  border: 1px solid rgba(255, 214, 107, 0.28);
  border-radius: 0.64rem;
  padding: 0.54rem 0.64rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 214, 107, 0.14), transparent 56%),
    rgba(53, 36, 12, 0.38);
  color: var(--cg-soft);
}

.guide-source-panel-label {
  color: #ffe7a1;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.66rem;
}

.guide-source-panel a,
.guide-source-panel span:not(.guide-source-panel-label) {
  color: var(--cg-text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.guide-card-body {
  border-top: 1px solid var(--cg-line);
  padding: 0.72rem;
  display: grid;
  gap: 0.72rem;
  cursor: auto;
}

.guide-card.is-expanded .guide-card-toggle {
  padding: 0;
}

.guide-card.is-expanded .guide-card-header {
  padding: 0.86rem 0.9rem;
}

.guide-card.is-expanded .guide-card-body {
  padding: 0.9rem;
  gap: 0.9rem;
}

.guide-card.is-expanded .guide-card-title {
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.guide-builder-fields {
  display: grid;
  grid-template-columns: minmax(12rem, 0.82fr) minmax(0, 1.35fr) minmax(12rem, 0.48fr);
  gap: 0.62rem;
}

.guide-builder-field-title {
  grid-column: 1 / 3;
}

.guide-builder-field-category {
  grid-column: 3;
}

.guide-builder-field-source-name {
  grid-column: 1;
}

.guide-builder-field-source-url {
  grid-column: 2 / 4;
}

.guide-builder-fields label,
.guide-element-field {
  display: grid;
  gap: 0.24rem;
}

.guide-builder-fields span,
.guide-element-field span {
  color: var(--cg-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.guide-builder-fields input,
.guide-builder-fields select,
.guide-element-field input,
.guide-element-field select,
.guide-element-field textarea,
.guide-modal-search {
  width: 100%;
  min-height: 2.18rem;
  border: 1px solid rgba(211, 207, 255, 0.26);
  border-radius: 0.58rem;
  padding: 0.44rem 0.58rem;
  background: rgba(7, 10, 24, 0.78);
  color: var(--cg-text);
  font: inherit;
  box-sizing: border-box;
}

.guide-element-field textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.38;
}

.guide-auth-notice {
  border: 1px solid rgba(255, 214, 107, 0.4);
  border-radius: 0.62rem;
  padding: 0.56rem 0.66rem;
  background: rgba(86, 55, 11, 0.42);
}

.guide-add-toolbar {
  border-top: 1px solid var(--cg-line);
  padding-top: 0.5rem;
}

.guide-element-stack {
  display: grid;
  gap: 0.66rem;
}

.guide-element {
  border: 1px solid var(--cg-line);
  border-radius: 0.72rem;
  padding: 0.64rem;
  background: rgba(9, 12, 26, 0.62);
  display: grid;
  gap: 0.56rem;
}

.guide-element-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.guide-element-title {
  margin: 0;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.76rem;
  color: var(--cg-soft);
}

.guide-element-actions {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.guide-icon-btn {
  min-width: 2.25rem;
  height: 1.7rem;
  border: 1px solid rgba(227, 230, 255, 0.28);
  border-radius: 0.42rem;
  background: rgba(15, 35, 58, 0.82);
  color: #fff;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.7rem;
  cursor: pointer;
}

.guide-icon-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.guide-render-stack {
  display: grid;
  gap: 0.76rem;
}

.guide-render-section {
  border: 1px solid var(--cg-line);
  border-radius: 0.66rem;
  background: rgba(9, 10, 26, 0.62);
  overflow: hidden;
}

.guide-render-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.76rem;
  min-height: 2.7rem;
  padding: 0.64rem 0.72rem;
  background: rgba(255, 255, 255, 0.045);
  color: var(--cg-text);
  cursor: pointer;
  list-style: none;
}

.guide-render-section-summary::-webkit-details-marker {
  display: none;
}

.guide-render-section-summary::marker {
  content: "";
}

.guide-render-section-title-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.98rem;
  line-height: 1.2;
}

.guide-render-section-caret {
  flex: 0 0 auto;
  color: var(--cg-soft);
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.8rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.guide-render-section[open] .guide-render-section-caret {
  transform: rotate(180deg);
}

.guide-render-section-body {
  display: grid;
  gap: 0.76rem;
  border-top: 1px solid var(--cg-line);
  padding: 0.76rem;
}

.guide-render-section-empty {
  margin: 0;
  color: var(--cg-muted);
  font-size: 0.86rem;
}

.guide-render-section-title {
  margin: 0;
  padding-bottom: 0.28rem;
  border-bottom: 1px solid var(--cg-line);
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 1rem;
}

.guide-render-paragraph {
  margin: 0;
  color: var(--cg-soft);
  font-size: 0.93rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.guide-media-preview,
.guide-render-media {
  margin: 0;
  border: 1px solid var(--cg-line);
  border-radius: 0.62rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.guide-render-image-button {
  appearance: none;
  border: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  display: block;
}

.guide-render-image-button:hover,
.guide-render-image-button:focus-visible {
  outline: none;
}

.guide-render-image-button:hover img,
.guide-render-image-button:focus-visible img {
  filter: brightness(1.08);
}

.guide-media-editor-gallery {
  padding: 0.58rem;
}

.guide-media-editor-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.5rem;
}

.guide-media-editor-gallery-item {
  position: relative;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-width: 0;
}

.guide-media-editor-gallery-item img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--cg-line);
  border-radius: 0.48rem;
  object-fit: cover;
}

.guide-media-editor-gallery-item figcaption {
  color: var(--cg-muted);
  font-size: 0.72rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.guide-media-editor-gallery-item .guide-icon-btn {
  position: absolute;
  top: 0.36rem;
  right: 0.36rem;
  min-width: 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
  background: rgba(10, 16, 29, 0.88);
}

.guide-render-gallery {
  display: grid;
}

.guide-render-gallery-track {
  position: relative;
  touch-action: pan-y;
}

.guide-render-gallery-slide {
  width: 100%;
}

.guide-render-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.72);
  color: #fff;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.32);
}

.guide-render-gallery-arrow:hover,
.guide-render-gallery-arrow:focus-visible {
  border-color: rgba(255, 229, 164, 0.74);
  outline: none;
}

.guide-render-gallery-arrow-prev {
  left: 0.58rem;
}

.guide-render-gallery-arrow-next {
  right: 0.58rem;
}

.guide-render-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.66rem;
  padding: 0.46rem 0.58rem;
  border-top: 1px solid var(--cg-line);
  background: rgba(7, 11, 22, 0.54);
}

.guide-render-gallery-counter {
  color: var(--cg-soft);
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.76rem;
  white-space: nowrap;
}

.guide-render-gallery-dots {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.34rem;
}

.guide-render-gallery-dot {
  width: 0.58rem;
  height: 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.guide-render-gallery-dot.is-active {
  border-color: rgba(255, 229, 164, 0.9);
  background: #ffe5a4;
}

.guide-media-preview img,
.guide-render-media img,
.guide-media-preview video,
.guide-render-media video {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
}

.guide-media-preview .guide-media-editor-gallery-item img {
  max-height: none;
  object-fit: cover;
}

.guide-render-media figcaption {
  padding: 0.42rem 0.54rem;
  color: var(--cg-muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.guide-image-lightbox-panel {
  width: min(1120px, 100%);
  max-height: min(860px, calc(100vh - 2rem));
}

.guide-image-lightbox-frame {
  margin: 0;
  display: grid;
  gap: 0.54rem;
}

.guide-image-lightbox-frame img {
  display: block;
  width: 100%;
  max-height: min(74vh, 720px);
  object-fit: contain;
  border: 1px solid var(--cg-line);
  border-radius: 0.62rem;
  background: rgba(0, 0, 0, 0.42);
}

.guide-image-lightbox-frame figcaption {
  color: var(--cg-soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.guide-build-preview,
.guide-team-preview {
  border: 1px solid rgba(184, 213, 255, 0.28);
  border-radius: 0.7rem;
  padding: 0.62rem;
  background: rgba(8, 13, 28, 0.74);
  display: grid;
  gap: 0.54rem;
}

.guide-build-preview-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.54rem;
  align-items: center;
}

.guide-team-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.guide-cookie-icon {
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.guide-cookie-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-build-name,
.guide-cookie-name,
.guide-team-name {
  margin: 0;
}

.guide-build-name,
.guide-team-name {
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.86rem;
}

.guide-cookie-name,
.guide-build-source {
  color: var(--cg-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.guide-mini-build-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.38rem;
}

.guide-mini-build-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.46rem;
  padding: 0.36rem 0.42rem;
  background: rgba(255, 255, 255, 0.07);
  color: var(--cg-soft);
  font-size: 0.72rem;
  line-height: 1.22;
}

.guide-team-builder {
  display: grid;
  gap: 0.62rem;
}

.guide-team-source-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.62rem;
  border: 1px solid rgba(142, 205, 255, 0.24);
  border-radius: 0.62rem;
  padding: 0.58rem;
  background: rgba(10, 28, 52, 0.48);
}

.guide-team-source-title,
.guide-team-source-copy {
  margin: 0;
}

.guide-team-source-title {
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.74rem;
  color: var(--cg-text);
}

.guide-team-source-copy {
  margin-top: 0.18rem;
  color: var(--cg-muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.guide-team-source-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.42rem;
}

.guide-team-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.guide-team-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.44rem;
}

.guide-team-slot,
.guide-team-preview-slot {
  border: 1px solid rgba(215, 222, 255, 0.23);
  border-radius: 0.62rem;
  padding: 0.46rem;
  background: rgba(3, 10, 25, 0.62);
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.community-guides-page .guide-team-editor-slot {
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
}

.guide-team-slot-cookie {
  appearance: none;
  border: 0;
  border-radius: 0.46rem;
  min-height: 6.2rem;
  padding: 0.4rem;
  background: linear-gradient(135deg, rgba(38, 26, 66, 0.92), rgba(92, 45, 83, 0.92));
  color: #fff;
  display: grid;
  gap: 0.34rem;
  place-items: center;
  cursor: pointer;
}

.guide-team-slot-cookie .guide-cookie-icon {
  width: 3rem;
  height: 3rem;
}

.guide-team-slot-label {
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.66rem;
  line-height: 1.18;
  text-align: center;
}

.guide-team-slot-build {
  appearance: none;
  border: 1px solid rgba(119, 203, 255, 0.34);
  border-radius: 0.42rem;
  min-height: 1.8rem;
  padding: 0.28rem 0.34rem;
  background: rgba(11, 44, 72, 0.75);
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
}

.guide-team-treasures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.44rem;
}

.guide-treasure-slot,
.guide-team-preview-treasure {
  appearance: none;
  border: 1px solid rgba(255, 221, 117, 0.34);
  border-radius: 0.56rem;
  min-height: 4.3rem;
  padding: 0.42rem;
  background: rgba(82, 55, 12, 0.48);
  color: var(--cg-soft);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.28rem;
  cursor: pointer;
}

.guide-treasure-slot img,
.guide-team-preview-treasure img {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
}

.guide-team-preview-slots,
.guide-team-preview-treasures {
  display: grid;
  gap: 0.44rem;
}

.guide-team-preview-slots {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.guide-team-preview-treasures {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-team-preview-head .guide-team-preview-treasures {
  grid-template-columns: repeat(3, minmax(3.8rem, 4.8rem));
  justify-content: start;
}

.guide-team-preview-head .guide-team-preview-treasure {
  min-height: 3.85rem;
  padding: 0.34rem;
  cursor: default;
  font-size: 0.58rem;
  line-height: 1.08;
}

.guide-team-preview-head .guide-team-preview-treasure img {
  width: 2rem;
  height: 2rem;
}

.community-guides-page .guild-team-view-slot-frame {
  display: grid;
  gap: 0.42rem;
  padding: 0.54rem;
  border: 1px solid var(--guild-border-soft);
  border-radius: 0.72rem;
  background: transparent;
  box-shadow: var(--profile-shared-frame-shadow-effect);
}

.community-guides-page .guild-team-slot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.community-guides-page .guide-guild-single-slot {
  display: grid;
  width: min(18rem, 100%);
}

.community-guides-page .guide-guild-single-slot .guild-team-slot-grid,
.community-guides-page .guide-guild-single-slot .guild-team-view-slot-grid {
  grid-template-columns: 1fr;
}

.community-guides-page .guild-team-slot {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.58rem;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  box-shadow: var(--profile-shared-frame-shadow-effect);
}

.community-guides-page .guild-team-view-slot {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  box-shadow: var(--profile-shared-frame-shadow-effect);
}

.community-guides-page .guild-team-slot.guild-team-view-slot {
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.community-guides-page .guild-team-view-slot.is-empty {
  place-items: center;
  text-align: center;
  min-height: 4.7rem;
}

.community-guides-page .guild-team-view-slot-index,
.community-guides-page .guild-team-view-slot-empty {
  margin: 0;
}

.community-guides-page .guild-team-view-slot-index {
  font-size: 0.52rem;
  color: var(--guild-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.community-guides-page .guild-team-view-slot-empty {
  font-size: 0.56rem;
  color: var(--guild-text-secondary);
}

.community-guides-page .guild-slot-picker-row {
  position: relative;
  display: grid;
  gap: 0.36rem;
}

.community-guides-page .guild-slot-cookie-button {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.34rem;
  padding: 0.48rem 0.42rem;
  border: 1px solid rgba(251, 135, 255, 0);
  border-radius: 0.74rem;
  background: transparent;
  color: #fff4da;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.community-guides-page .guild-slot-cookie-button.is-filled {
  justify-items: stretch;
  text-align: left;
  gap: 0;
  height: 3.84rem;
  padding: 0.3rem 0.32rem 0.36rem 0;
  border-color: rgba(255, 214, 135, 0.34);
  background: var(--guild-rarity-fill-default);
  box-shadow: var(--profile-shared-frame-shadow-effect);
}

.community-guides-page .guild-slot-cookie-button.is-filled[data-cookie-rarity="common"] {
  background: var(--guild-rarity-fill-common);
}

.community-guides-page .guild-slot-cookie-button.is-filled[data-cookie-rarity="rare"] {
  background: var(--guild-rarity-fill-rare);
}

.community-guides-page .guild-slot-cookie-button.is-filled[data-cookie-rarity="special"] {
  background: var(--guild-rarity-fill-special);
}

.community-guides-page .guild-slot-cookie-button.is-filled[data-cookie-rarity="epic"] {
  background: var(--guild-rarity-fill-epic);
}

.community-guides-page .guild-slot-cookie-button.is-filled[data-cookie-rarity="super-epic"] {
  background: var(--guild-rarity-fill-super-epic);
}

.community-guides-page .guild-slot-cookie-button.is-filled[data-cookie-rarity="dragon"] {
  background: var(--guild-rarity-fill-dragon);
}

.community-guides-page .guild-slot-cookie-button.is-filled[data-cookie-rarity="legendary"] {
  background: var(--guild-rarity-fill-legendary);
}

.community-guides-page .guild-slot-cookie-button.is-filled[data-cookie-rarity="ancient"] {
  background: var(--guild-rarity-fill-ancient);
}

.community-guides-page .guild-slot-cookie-button.is-filled[data-cookie-rarity="witch"] {
  background: var(--guild-rarity-fill-witch);
}

.community-guides-page .guild-slot-cookie-button.is-filled[data-cookie-rarity="beast"] {
  background: var(--guild-rarity-fill-beast);
}

.community-guides-page .guild-team-view-slot .guild-slot-cookie-button-static {
  cursor: default;
}

.community-guides-page .guild-team-view-slot .guild-slot-cookie-button-static.is-profile-link {
  cursor: pointer;
}

.community-guides-page .guild-team-view-slot .guild-slot-cookie-button-static.is-profile-link:hover,
.community-guides-page .guild-team-view-slot .guild-slot-cookie-button-static.is-profile-link:focus-visible {
  border-color: rgba(255, 240, 188, 0.76);
  box-shadow:
    var(--profile-shared-frame-shadow-effect),
    0 0 0 2px rgba(255, 237, 170, 0.16);
  transform: translateY(-1px);
}

.community-guides-page .guild-team-view-slot .guild-slot-cookie-button-static.is-filled {
  padding: 0.14rem 0.32rem 0.18rem 0;
  align-content: center;
  overflow: hidden;
}

.community-guides-page .guild-slot-cookie-preview {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: 0.88rem;
  align-items: stretch;
  min-height: 3.06rem;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.community-guides-page .guild-team-view-slot .guild-slot-cookie-button-static .guild-slot-cookie-preview,
.community-guides-page .guild-slot-picker-row .guild-slot-cookie-button.is-filled .guild-slot-cookie-preview {
  grid-template-columns: minmax(0, 3.18rem) minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  align-content: center;
  align-items: center;
  gap: 0.64rem;
}

.community-guides-page .guild-slot-cookie-preview-art {
  position: relative;
  justify-self: start;
  margin: 0;
  border-radius: 0.56rem;
  overflow: visible;
  background: transparent;
  transform: scale(0.8);
  transform-origin: left center;
}

.community-guides-page .guild-team-view-slot .guild-slot-cookie-button-static .guild-slot-cookie-preview-art,
.community-guides-page .guild-slot-picker-row .guild-slot-cookie-button.is-filled .guild-slot-cookie-preview-art {
  width: 3.18rem;
  height: 3.18rem;
  align-self: center;
  overflow: hidden;
  transform: none;
}

.community-guides-page .guild-slot-cookie-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
  overflow: hidden;
  filter:
    drop-shadow(0 3px 8px rgba(10, 6, 24, 0.72))
    drop-shadow(0 0 14px rgba(140, 98, 192, 0.34));
}

.community-guides-page .guild-cookie-preview-fallback[hidden] {
  display: none !important;
}

.community-guides-page .guild-slot-cookie-preview-content {
  min-width: 0;
  display: grid;
  grid-template-rows: auto;
  align-content: center;
  align-self: center;
  gap: 0.18rem;
}

.community-guides-page .guild-slot-cookie-preview-name {
  margin: 0;
  align-self: center;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-weight: 900;
  font-size: 0.84rem;
  line-height: 1.22;
  color: #fff0cd;
  text-shadow:
    0 1px 1px rgba(10, 6, 20, 0.95),
    0 2px 4px rgba(8, 4, 16, 0.92),
    0 0 12px rgba(16, 8, 28, 0.72);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.community-guides-page .guild-slot-build-frame {
  display: grid;
  gap: 0.42rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.community-guides-page .guild-slot-build-status {
  margin: 0;
  color: #e5d2ff;
  font-size: 0.58rem;
  line-height: 1.35;
}

.community-guides-page .guild-build-groups {
  display: grid;
  gap: 0.42rem;
  --guild-build-groups-font-scale: 1.2;
}

.community-guides-page .guild-build-group {
  display: grid;
  gap: 0.32rem;
  padding: 0.38rem;
  border: 1px solid rgba(255, 214, 135, 0.14);
  border-radius: 0.55rem;
  background: rgba(18, 10, 6, 0.62);
  box-shadow: var(--profile-shared-frame-shadow-effect);
}

.community-guides-page .guild-build-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.36rem;
}

.community-guides-page .guild-build-group-title {
  margin: 0;
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffdca0;
}

.community-guides-page .guild-build-option-list {
  display: grid;
  gap: 0.28rem;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.community-guides-page .guild-build-option-row {
  position: relative;
}

.community-guides-page .guild-build-option-head {
  position: relative;
}

.community-guides-page .guild-build-option {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 0.18rem;
  padding: 0.34rem 0.38rem;
  border: 1px solid rgba(255, 232, 167, 0.84);
  border-radius: 0.5rem;
  background: rgba(36, 21, 10, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 241, 194, 0.16);
  color: #fff0d0;
  cursor: default;
}

.community-guides-page .guild-build-option-row.is-selected .guild-build-option {
  border-color: rgba(220, 203, 255, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 241, 194, 0.26),
    0 8px 18px rgba(12, 7, 24, 0.34);
  background: var(--guild-build-option-selected-rarity-gradient, var(--guild-rarity-fill-default));
}

.community-guides-page .guild-build-option-row.is-selected[data-cookie-rarity="common"] {
  --guild-build-option-selected-rarity-gradient: var(--guild-rarity-fill-common);
}

.community-guides-page .guild-build-option-row.is-selected[data-cookie-rarity="rare"] {
  --guild-build-option-selected-rarity-gradient: var(--guild-rarity-fill-rare);
}

.community-guides-page .guild-build-option-row.is-selected[data-cookie-rarity="special"] {
  --guild-build-option-selected-rarity-gradient: var(--guild-rarity-fill-special);
}

.community-guides-page .guild-build-option-row.is-selected[data-cookie-rarity="epic"] {
  --guild-build-option-selected-rarity-gradient: var(--guild-rarity-fill-epic);
}

.community-guides-page .guild-build-option-row.is-selected[data-cookie-rarity="super-epic"] {
  --guild-build-option-selected-rarity-gradient: var(--guild-rarity-fill-super-epic);
}

.community-guides-page .guild-build-option-row.is-selected[data-cookie-rarity="dragon"] {
  --guild-build-option-selected-rarity-gradient: var(--guild-rarity-fill-dragon);
}

.community-guides-page .guild-build-option-row.is-selected[data-cookie-rarity="legendary"] {
  --guild-build-option-selected-rarity-gradient: var(--guild-rarity-fill-legendary);
}

.community-guides-page .guild-build-option-row.is-selected[data-cookie-rarity="ancient"] {
  --guild-build-option-selected-rarity-gradient: var(--guild-rarity-fill-ancient);
}

.community-guides-page .guild-build-option-row.is-selected[data-cookie-rarity="witch"] {
  --guild-build-option-selected-rarity-gradient: var(--guild-rarity-fill-witch);
}

.community-guides-page .guild-build-option-row.is-selected[data-cookie-rarity="beast"] {
  --guild-build-option-selected-rarity-gradient: var(--guild-rarity-fill-beast);
}

.community-guides-page .guild-build-option-title,
.community-guides-page .guild-build-option-meta {
  min-width: 0;
}

.community-guides-page .guild-build-option-title {
  font-size: 0.56rem;
  line-height: 1.2;
  text-shadow:
    0 1px 1px rgba(10, 6, 20, 0.92),
    0 2px 5px rgba(8, 4, 16, 0.86),
    0 0 10px rgba(14, 8, 28, 0.5);
}

.community-guides-page .guild-build-option-meta {
  font-size: 0.5rem;
  line-height: 1.2;
  color: #dcc18f;
  text-shadow:
    0 1px 1px rgba(10, 6, 20, 0.9),
    0 2px 4px rgba(8, 4, 16, 0.84),
    0 0 8px rgba(14, 8, 28, 0.46);
}

.community-guides-page .guild-build-option-preview {
  margin-top: 0.28rem;
  display: grid;
  gap: 0.3rem;
  padding: 0.34rem;
  border: 1px solid rgba(237, 211, 255, 0.32);
  border-radius: 0.56rem;
  background: rgba(18, 10, 33, 0.72);
}

.community-guides-page .guild-build-preview-top-row {
  display: grid;
  grid-template-columns: 6.3rem auto;
  align-items: start;
  justify-content: space-between;
  gap: 0.38rem;
  width: 100%;
}

.community-guides-page .guild-build-preview-toppings-stack {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.24rem;
  align-content: stretch;
}

.community-guides-page .guild-build-preview-toppings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 0.18rem;
}

.community-guides-page .guild-build-preview-topping-cell {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(238, 212, 255, 0.3);
  border-radius: 0.42rem;
  background: rgba(32, 18, 54, 0.9);
  overflow: hidden;
}

.community-guides-page .guild-build-preview-topping-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.community-guides-page .guild-build-preview-topping-cell.is-empty {
  border-style: dashed;
  background: rgba(27, 15, 46, 0.56);
}

.community-guides-page .guild-build-preview-resonant-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: center;
  gap: 0.16rem;
  min-height: 0;
}

.community-guides-page .guild-build-preview-resonant-icon {
  width: 1.84rem;
  height: 1.84rem;
  border-radius: 0.36rem;
  border: 1px solid rgba(238, 212, 255, 0.34);
  background: rgba(32, 18, 54, 0.9);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.community-guides-page .guild-build-preview-resonant-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.community-guides-page .guild-build-preview-resonant-icon.is-empty {
  visibility: hidden;
}

.community-guides-page .guild-build-preview-beascuit-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  justify-items: center;
  justify-self: end;
  width: min(7.2rem, 100%);
  height: fit-content;
  min-height: fit-content;
  min-width: 0;
  padding: 0.34rem;
  border: 1px solid rgba(237, 211, 255, 0.28);
  border-radius: 0.5rem;
  background: rgba(27, 15, 47, 0.66);
  overflow: visible;
}

.community-guides-page .guild-build-preview-beascuit-icon {
  width: min(100%, 5.4rem);
  aspect-ratio: 1 / 1;
  border-radius: 0.54rem;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.community-guides-page .guild-build-preview-beascuit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.community-guides-page .guild-build-preview-beascuit-effects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: fit-content;
  gap: 0.14rem 0.34rem;
  overflow: visible;
}

.community-guides-page .guild-build-preview-beascuit-effect {
  margin: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #efe4ff;
  font-size: 0.5rem;
  line-height: 1.24;
  text-align: center;
  word-break: break-word;
}

.community-guides-page .guild-build-preview-beascuit-effect.guild-build-preview-beascuit-effect--elemental {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.community-guides-page .guild-build-preview-beascuit-effect-icon {
  width: 0.54rem;
  height: 0.54rem;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}

.community-guides-page .guild-build-preview-beascuit-effect-text {
  line-height: 1;
}

.community-guides-page .guild-build-preview-beascuit-effect.is-empty {
  visibility: hidden;
}

.community-guides-page .guild-build-preview-details-stack {
  display: contents;
}

.community-guides-page .guild-build-preview-detail {
  border: 1px solid rgba(237, 211, 255, 0.26);
  border-radius: 0.48rem;
  background: rgba(22, 12, 38, 0.66);
}

.community-guides-page .guild-build-preview-detail > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.22rem 0.3rem;
  font-size: 0.5rem;
  line-height: 1.2;
  color: #f3e8ff;
  user-select: none;
}

.community-guides-page .guild-build-preview-detail > summary::-webkit-details-marker {
  display: none;
}

.community-guides-page .guild-build-preview-detail > summary::after {
  content: "v";
  float: right;
  opacity: 0.84;
  transform: rotate(0deg);
  transition: transform 120ms ease;
}

.community-guides-page .guild-build-preview-detail[open] > summary::after {
  transform: rotate(180deg);
}

.community-guides-page .guild-build-preview-detail-body {
  border-top: 1px solid rgba(237, 211, 255, 0.22);
  padding: 0.22rem 0.3rem 0.26rem;
}

.community-guides-page .guild-build-preview-guidance-list {
  margin: 0;
  padding: 0 0 0 0.78rem;
  display: grid;
  gap: 0.14rem;
  color: #efe4ff;
  font-size: 0.48rem;
  line-height: 1.25;
}

.community-guides-page .guild-build-preview-note-block {
  display: grid;
  gap: 0.14rem;
}

.community-guides-page .guild-build-preview-guidance-empty,
.community-guides-page .guild-build-preview-note-block p {
  margin: 0;
  color: #efe4ff;
  font-size: 0.48rem;
  line-height: 1.25;
}

.community-guides-page .guide-team-slot-actions {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
}

.community-guides-page .guide-team-slot-actions .guide-btn {
  min-height: 1.12rem;
  max-height: 1.72rem;
  padding: 0.18rem 0.34rem;
  font-size: 0.56rem;
}

.guide-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.guide-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 12, 0.72);
  backdrop-filter: blur(8px);
}

.guide-modal-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  border-radius: 0.82rem;
  padding: 0.86rem;
  overflow: auto;
  display: grid;
  gap: 0.64rem;
}

.guide-build-picker-panel {
  width: min(760px, 100%);
}

.guide-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.guide-cookie-grid,
.guide-treasure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 0.48rem;
}

.guide-picker-card {
  appearance: none;
  border: 1px solid rgba(232, 219, 255, 0.24);
  border-radius: 0.58rem;
  min-height: 7.1rem;
  padding: 0.46rem;
  background: rgba(8, 15, 31, 0.76);
  color: #fff;
  display: grid;
  gap: 0.34rem;
  justify-items: center;
  align-content: center;
  cursor: pointer;
  text-align: center;
}

.guide-picker-card img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: 0.42rem;
}

.guide-picker-card span {
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.66rem;
  line-height: 1.16;
}

.guide-build-picker-list {
  display: grid;
  gap: 0.48rem;
}

.guide-build-option,
.guide-team-build-option {
  appearance: none;
  border: 1px solid var(--cg-line);
  border-radius: 0.62rem;
  padding: 0.58rem;
  background: rgba(8, 15, 31, 0.76);
  color: #fff;
  display: grid;
  gap: 0.2rem;
  text-align: left;
  cursor: pointer;
}

.guide-build-option strong,
.guide-team-build-option strong {
  font-family: "CookieRun KR", "Outfit", sans-serif;
  font-size: 0.82rem;
}

.guide-build-option span,
.guide-team-build-option-meta {
  color: var(--cg-muted);
  font-size: 0.76rem;
}

.guide-team-build-option {
  gap: 0.4rem;
}

.guide-team-build-option-visuals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.56rem;
}

.guide-team-build-option-cookies,
.guide-team-build-option-treasures {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.26rem;
}

.guide-team-build-option-cookie,
.guide-team-build-option-treasure {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.42rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cg-muted);
  overflow: hidden;
}

.guide-team-build-option-cookie {
  width: 2.35rem;
  height: 2.35rem;
}

.guide-team-build-option-cookie-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-team-build-option-treasure {
  width: 2.05rem;
  height: 2.05rem;
}

.guide-team-build-option-treasure img {
  width: 1.62rem;
  height: 1.62rem;
  object-fit: contain;
}

@media (max-width: 900px) {
  .guide-builder-fields {
    grid-template-columns: 1fr;
  }

  .guide-builder-fields > label {
    grid-column: auto;
  }

  .guide-team-slots,
  .guide-team-preview-slots,
  .community-guides-page .guild-team-view-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .community-guides-page {
    --cg-sticky-builder-top: 4.15rem;
  }
}

@media (max-width: 640px) {
  .community-guides-page .route-main.community-guides-main {
    width: min(100% - 1rem, 1600px);
    margin-top: 1rem;
  }

  .community-guides-hero,
  .guide-browser,
  .guide-builder-card {
    padding: 0.82rem;
  }

  .community-guides-page .community-guides-hero {
    align-content: stretch;
    grid-template-rows: auto auto 1fr;
  }

  .community-guides-hero .hero-copy {
    align-self: end;
  }

  .guide-browser-head,
  .guide-builder-head {
    flex-direction: row;
  }

  .guide-builder-head {
    grid-template-columns: 1fr;
    margin: -0.82rem -0.82rem 0;
    padding: 0.72rem 0.82rem;
  }

  .guide-builder-toolbar {
    width: 100%;
    justify-items: stretch;
  }

  .guide-builder-head-actions,
  .guide-add-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .guide-builder-head-actions .guide-btn,
  .guide-add-toolbar .guide-btn {
    flex: 1 1 8.2rem;
  }

  .guide-mini-build-grid,
  .guide-team-treasures,
  .community-guides-page .guild-team-view-slot-grid,
  .community-guides-page .guide-team-slot-actions {
    grid-template-columns: 1fr;
  }

  .guide-team-source-panel,
  .guide-team-build-option-visuals {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-team-source-actions {
    justify-content: stretch;
  }

  .guide-team-source-actions .guide-btn {
    width: 100%;
  }

  .guide-render-gallery-arrow {
    width: 2rem;
    height: 2rem;
  }

  .guide-render-gallery-arrow-prev {
    left: 0.38rem;
  }

  .guide-render-gallery-arrow-next {
    right: 0.38rem;
  }

  .guide-render-gallery-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-render-gallery-dots {
    justify-content: flex-start;
  }

  .guide-team-preview-head .guide-team-preview-treasures {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }
}
