@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&display=swap");
:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --surface: #131318;
  --surface2: #1a1a1f;
  --border: #303037;
  --text: #e8e1d0;
  --muted: #a4a4b0;
  --gold: #d4af7c;
  --green: #9dc9b4;
  font-family: "Noto Sans TC", Inter, system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--gold);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.16s;
}
button:hover,
.button:hover {
  background: #24242b;
  text-decoration: none;
}
button:active,
.button:active {
  transform: scale(0.97);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #17140e;
}
.primary:hover {
  background: #dfc199;
  color: #17140e;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  padding: 8px 16px;
}
textarea {
  resize: vertical;
  min-height: 104px;
}
select[multiple] {
  min-height: 144px;
}
input[type="checkbox"] {
  width: 24px;
  min-height: 24px;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.5;
  letter-spacing: -0.03em;
}
h2 {
  font-size: 24px;
  line-height: 1.5;
}
h3 {
  font-size: 18px;
  line-height: 1.5;
}
img {
  max-width: 100%;
}
.muted,
.meta,
.list-meta,
.breadcrumb {
  color: var(--muted);
  font-size: 14px;
}
.community-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1376px) / 2));
  display: flex;
  align-items: center;
  gap: 32px;
  background: #0b0b0feb;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.community-brand {
  flex-shrink: 0;
}
.community-brand img {
  display: block;
  width: 144px;
  height: 48px;
  object-fit: contain;
}
.community-header nav,
.header-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}
.header-actions {
  margin-left: auto;
}
.community-main {
  max-width: 1376px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  min-height: 65vh;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-heading p {
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}
.eyebrow {
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
}
.community-footer {
  border-top: 1px solid var(--border);
  padding: 32px max(24px, calc((100vw - 1328px) / 2));
  font-size: 14px;
  display: grid;
  gap: 16px;
}
.community-footer div,
.community-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.community-footer p,
.community-footer span {
  color: var(--muted);
  margin: 0;
}
.filters {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  margin-bottom: 24px;
  display: grid;
  gap: 16px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.filters > button {
  justify-self: start;
}
.filters summary {
  cursor: pointer;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin-bottom: 16px;
  font-size: 14px;
}
.field > span {
  font-weight: 500;
}
.field:last-child {
  margin-bottom: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.list-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.build-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  min-width: 0;
}
.build-cover {
  width: 100%;
  height: 144px;
  object-fit: cover;
}
.card-body {
  padding: 24px;
}
.build-card h2 {
  font-size: 20px;
  margin: 16px 0 8px;
}
.build-card p {
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}
.meta,
.chips,
.card-bottom,
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-bottom {
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 12px;
}
.badge,
.chips span {
  display: inline-block;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.badge.verified {
  color: var(--green);
}
.empty-state {
  padding: 48px 24px;
  border: 1px dashed var(--border);
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
}
.pagination {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  justify-content: center;
}
.guide-heading {
  max-width: 960px;
  padding: 24px 0 32px;
}
.guide-heading h1 {
  margin: 16px 0;
}
.guide-heading .actions {
  margin-top: 24px;
}
.subtitle {
  font-size: 20px;
  color: var(--muted);
}
.notice {
  padding: 16px 24px;
  background: #d4af7c0d;
  border: 1px solid #d4af7c40;
  border-radius: 16px;
  margin: 0 0 24px;
}
.notice h2 {
  font-size: 18px;
}
.notice button {
  margin: 8px;
}
.stage-switch {
  position: sticky;
  top: 72px;
  z-index: 20;
  background: #131318ed;
  backdrop-filter: blur(16px);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 32px;
}
.stage-switch select {
  width: 200px;
  flex-shrink: 0;
}
.stage-switch span {
  font-size: 12px;
  color: var(--muted);
}
.guide-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
}
.toc {
  position: sticky;
  top: 184px;
  align-self: start;
  max-height: calc(100vh - 208px);
  overflow: auto;
}
.toc nav {
  display: grid;
  gap: 8px;
}
.toc a {
  font-size: 14px;
  padding: 8px 16px;
  border-left: 2px solid transparent;
}
.toc a[aria-current="location"] {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--surface);
}
.guide-section {
  scroll-margin-top: 184px;
  margin-bottom: 64px;
}
.guide-section > h2 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.rating-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.rating-grid div {
  background: var(--surface);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.rating-grid span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.rating-grid strong {
  display: block;
  margin-top: 8px;
}
.prose-block {
  margin-bottom: 24px;
}
.prose-block h3 {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 8px;
}
.guide-content p {
  overflow-wrap: anywhere;
}
.gear-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.gear-card,
.skill-group {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 24px;
}
.gear-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.gear-title h3 {
  margin: 8px 0;
}
.item-icon {
  display: block;
  flex-shrink: 0;
  background-image: url("/planner-art/items.webp");
  background-repeat: no-repeat;
}
.gear-card .prose-block {
  margin-bottom: 16px;
}
.gear-card p {
  font-size: 14px;
}
.skill-group {
  margin-bottom: 16px;
}
.rotation-list {
  padding-left: 24px;
}
.rotation-list li {
  padding: 16px;
}
.passive-image {
  display: block;
  max-height: 640px;
  margin-top: 24px;
  object-fit: contain;
}
.guide-section iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 16px;
}
.guide-section figure {
  margin: 0 0 24px;
}
.guide-section details {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.guide-section time {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.toc-toggle {
  display: none;
}
.auth-card {
  max-width: 496px;
  margin: 24px auto;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}
.auth-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
  font-size: 14px;
}
.form-status:empty {
  display: none;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.account-grid section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
}
.account-grid form {
  margin-top: 24px;
  margin-bottom: 24px;
}
.user-menu {
  position: relative;
}
.user-menu summary {
  cursor: pointer;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu > div {
  position: absolute;
  right: 0;
  top: 40px;
  min-width: 200px;
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #1a1a1ff5;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 8px 24px #00000014;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 24px;
}
.editor-aside {
  position: sticky;
  top: 96px;
  align-self: start;
}
.editor-tools {
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
}
.editor-tools h2 {
  font-size: 18px;
}
.editor-tools ul {
  padding: 0;
  list-style: none;
  font-size: 14px;
  margin: 0;
}
.editor-tools li {
  margin-bottom: 8px;
}
.editor-tools li span {
  color: var(--muted);
  font-size: 12px;
}
.editor-tools .done {
  color: var(--green);
}
#save-status {
  font-size: 14px;
  margin: 0;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 0;
  min-width: 0;
}
.editor-block {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}
.editor-block > summary {
  padding: 16px 24px;
  font-size: 18px;
  cursor: pointer;
}
.editor-block-body {
  padding: 8px 24px 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid > .field {
  margin-bottom: 0;
}
.editor-row {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 16px;
  background: var(--bg);
}
.editor-row .field {
  margin-bottom: 16px;
}
.row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.row-actions button {
  font-size: 12px;
  padding: 8px;
}
.editor-stage {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  margin: 32px 0;
  background: #111115;
}
.editor-stage > .actions {
  margin: 16px 0;
}
.editor-stage > .field {
  margin: 24px 0;
}
.stage-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stage-tabs [aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold);
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
td button {
  margin: 0 8px 8px 0;
}
.creator-heading {
  padding: 24px 0 40px;
}
.creator-heading img {
  border-radius: 24px;
  object-fit: cover;
}
.creator-heading p {
  max-width: 720px;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--surface);
  padding: 16px;
}
dialog {
  max-width: min(560px, calc(100% - 32px));
  max-height: 85vh;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  background: #131318f5;
  backdrop-filter: blur(20px);
  color: var(--text);
}
dialog::backdrop {
  background: #0008;
  backdrop-filter: blur(4px);
}
dialog nav {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
dialog label {
  display: block;
  margin-bottom: 16px;
}
#app-status:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(640px, calc(100% - 32px));
  padding: 16px 24px;
  background: #1a1a1ff5;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 24px #00000014;
}
#review-form {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  margin-bottom: 32px;
  background: var(--surface);
}
@media (max-width: 1024px) {
  .build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
  }
  .rating-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .community-header {
    gap: 16px;
  }
  .community-header nav {
    gap: 16px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 232px;
  }
  .editor-tools {
    padding: 16px;
  }
  .gear-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .community-header {
    min-height: 64px;
    padding: 0 16px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .community-brand img {
    width: 120px;
    height: 40px;
  }
  .community-header nav {
    order: 3;
    flex-basis: 100%;
    padding-bottom: 8px;
    font-size: 12px;
  }
  .community-header .header-actions {
    gap: 16px;
  }
  .community-main {
    padding: 24px 16px 48px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }
  .build-grid,
  .account-grid,
  .filter-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .build-grid {
    gap: 16px;
  }
  .card-body {
    padding: 24px;
  }
  .filters {
    padding: 16px;
  }
  .guide-layout {
    display: block;
  }
  .toc {
    display: none;
  }
  .toc-toggle {
    display: inline-flex;
    margin-bottom: 24px;
  }
  .stage-switch {
    position: relative;
    top: auto;
    flex-wrap: wrap;
    padding: 16px;
    margin-bottom: 16px;
  }
  .stage-switch span {
    flex-basis: 100%;
  }
  .stage-switch select {
    flex: 1;
  }
  .guide-section {
    margin-bottom: 48px;
    scroll-margin-top: 112px;
  }
  .rating-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editor-layout {
    display: flex;
    flex-direction: column;
  }
  .editor-aside {
    position: relative;
    top: auto;
    order: -1;
    width: 100%;
  }
  .editor-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .editor-tools h2,
  .editor-tools ul,
  .editor-tools .muted {
    flex-basis: 100%;
  }
  .editor-tools ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .editor-block > summary {
    padding: 16px;
  }
  .editor-block-body {
    padding: 8px 16px 16px;
  }
  .editor-stage,
  .editor-row {
    padding: 16px;
  }
  .editor-stage > .section-heading p {
    font-size: 14px;
  }
  .auth-card {
    padding: 24px;
    margin: 8px auto;
  }
  .community-footer {
    padding: 24px 16px;
  }
  .account-grid {
    gap: 24px;
  }
  .gear-card {
    padding: 16px;
  }
  .list-meta {
    gap: 16px;
    font-size: 12px;
  }
  .community-header .user-menu summary {
    max-width: 104px;
  }
  .guide-heading {
    padding-top: 16px;
  }
  .community-header {
    position: relative;
  }
  .row-actions {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.community-menu-toggle {
  display: none;
}
.connection-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  margin-top: 32px;
}
.connection-panel .field {
  margin-top: 24px;
}
.connection-panel dd {
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.connection-panel dt {
  color: var(--muted);
  font-size: 14px;
}
.status-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.status-tabs a {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.status-tabs [aria-current="page"] {
  background: var(--surface2);
  color: var(--gold);
}
.editor-section-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 14px;
}
.editor-section-nav a {
  padding: 8px;
}
.editor-layout {
  grid-template-columns: 152px minmax(0, 1fr) 240px;
}
#badge-form {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  margin-bottom: 24px;
}
#badge-form .check {
  margin: 16px 0;
}
@media (max-width: 1120px) {
  .editor-section-nav {
    display: none;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 232px;
  }
}
@media (max-width: 760px) {
  .community-header {
    height: 64px;
    min-height: 64px;
    flex-wrap: nowrap;
    position: sticky;
  }
  .community-header nav {
    display: none;
  }
  .community-menu-toggle {
    display: inline-flex;
    padding: 8px;
    min-width: 40px;
  }
  .nav-open .community-header nav {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 16px;
    background: #131318f5;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }
  .community-header .header-actions {
    gap: 8px;
  }
  .community-brand img {
    width: 112px;
  }
  .community-header .user-menu summary {
    max-width: 80px;
  }
  .connection-panel {
    margin-top: 24px;
  }
}
.header-search {
  margin-left: auto;
  width: 192px;
  flex-shrink: 1;
}
.header-search input {
  width: 100%;
  font-size: 14px;
  padding: 8px 16px;
}
.community-header nav {
  white-space: nowrap;
}
.community-header .header-actions {
  flex-shrink: 0;
}
@media (max-width: 1120px) {
  .header-search {
    display: none;
  }
}
@media (max-width: 760px) {
  .nav-open .community-header nav {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}
