:root {
  color-scheme: light;
  --paper: #f8f9fe;
  --surface: #fff;
  --ink: #171e36;
  --muted: #536078;
  --line: #e0e4ef;
  --accent: #303de0;
  --accent-dark: #2531bc;
  --accent-light: #edf0ff;
  --community-paper: #f3f5fa;
  --radius: 16px;
  font: 16px/1.5 'Pretendard Variable', Pretendard, system-ui, 'Malgun Gothic', sans-serif;
  background: var(--surface);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell { width: min(1264px, 100% - 72px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: stretch; min-height: 73px; gap: clamp(17px, 2.4vw, 30px); }
.brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; font-size: 23px; font-weight: 840; letter-spacing: -.066em; }
.brand-name > span { color: var(--accent); }
.brand-mark { display: grid; gap: 2px; width: 34px; height: 34px; padding: 8px; align-content: center; border-radius: 9px; background: var(--accent); }
.brand-mark b { display: block; width: 100%; height: 4px; border-radius: 1px; background: #fff; transform: skewX(-26deg); }
.brand-mark b:nth-child(2) { width: 82%; }
.brand-mark b:nth-child(3) { width: 63%; }
.nav { display: flex; align-items: stretch; gap: clamp(10px, 1.7vw, 22px); }
.nav a { display: grid; place-items: center; color: var(--muted); font-size: 15px; font-weight: 660; white-space: nowrap; border-block: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 7px; margin-inline-start: auto; white-space: nowrap; }
.solid-button, .quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 13px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 700; }
.solid-button { background: var(--accent); color: #fff; }
.solid-button:hover { background: var(--accent-dark); }
.quiet-button { border-color: var(--line); background: var(--surface); }
.quiet-button:hover { background: var(--paper); }
.activity-button b { background: var(--accent-light); color: var(--accent-dark); padding: 0 5px; min-width: 19px; text-align: center; border-radius: 5px; font-size: 12px; }
.activity-button[aria-current] { color: var(--accent-dark); border-color: #c7d1fa; }
.nav-toggle { display: none; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px 26px; flex-wrap: wrap; padding-block: 30px 24px; }
.page-heading h1 { font-size: clamp(34px, 4vw, 42px); font-weight: 840; line-height: 1.05; letter-spacing: -.075em; }
.page-heading p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.board-write { min-height: 44px; white-space: nowrap; }
.home-intro { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); min-height: clamp(348px, 34vw, 436px); background: var(--accent-light); border-radius: 24px; overflow: hidden; margin: 28px 0 16px; }
.intro-copy { min-width: 0; align-self: center; padding: clamp(24px, 4vw, 57px); }
.intro-copy h1 { font-size: clamp(2.5rem, 5.15vw, 4.42rem); line-height: 1.06; letter-spacing: -.075em; font-weight: 850; word-break: keep-all; }
.intro-copy p { margin: 17px 0 22px; color: var(--muted); max-width: 33ch; font-size: 1.05rem; line-height: 1.62; word-break: keep-all; text-wrap: pretty; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-actions > a { min-height: 46px; padding-inline: 17px; font-size: 15px; }
.intro-visual { margin: 0; position: relative; min-width: 0; background: #d9dcec; }
.intro-visual img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.intro-visual figcaption { position: absolute; right: 15px; bottom: 15px; padding: 8px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 720; }
.intro-visual figcaption a:hover { color: var(--accent); text-decoration: underline; }
.search { display: flex; align-items: center; gap: 9px; width: min(100%, 340px); border: 1px solid var(--line); padding: 5px 6px 5px 13px; border-radius: 10px; background: var(--surface); }
.search-icon { flex: 0 0 12px; height: 12px; border: 1.6px solid var(--muted); border-radius: 50%; position: relative; margin-inline-end: 2px; }
.search-icon::after { content: ''; position: absolute; width: 5px; height: 1.6px; background: var(--muted); right: -4px; bottom: -2px; transform: rotate(44deg); }
.search input { flex: 1; min-width: 0; background: none; border: 0; padding: 5px 0; }
.search input::placeholder { color: var(--muted); font-size: 14px; }
.search button { border: 0; padding: 6px 8px; border-radius: 6px; background: var(--paper); font-size: 13px; font-weight: 700; }
.search button:hover { background: var(--accent-light); color: var(--accent-dark); }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin-bottom: 11px; }
.featured-heading { align-items: center; flex-wrap: wrap; margin-bottom: 15px; }
.featured-actions { display: flex; align-items: center; gap: 8px; }
.featured-actions > a { flex-shrink: 0; }
.section-heading h2, .guide-layout h2, .lesson h2, .market-list h2 { font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.045em; }
.text-link { padding: 3px 0; font-weight: 690; font-size: 14px; color: var(--muted); }
.text-link:hover { color: var(--accent-dark); text-decoration: underline; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.story { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); min-width: 0; }
.story:hover, .story:focus-within { border-color: #aeb7f9; }
.photo { background: #edebea var(--print-photo-sheet, url('print-projects.webp')) no-repeat; background-size: 200% 200%; aspect-ratio: 3 / 2; }
.photo-cable { background-position: left top; }
.photo-bits { background-position: right top; }
.photo-drawer { background-position: left bottom; }
.photo-lesson { background-position: right bottom; }
.photo-link { display: block; width: 100%; }
.photo:has(> .user-post-photo) { background: #eeeff4; overflow: hidden; }
.user-post-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-link:focus-visible { outline-offset: -4px; }
.story-body { padding: 14px 16px 16px; }
.story-body h3 { font-size: clamp(17px, 2vw, 20px); font-weight: 790; line-height: 1.25; letter-spacing: -.045em; margin: 4px 0 8px; }
.story-title, .feed-open { background: none; border: 0; padding: 0; font: inherit; text-align: start; }
.story-title:hover, .feed-open:hover { color: var(--accent-dark); }
.tag { font-size: 12px; font-weight: 750; color: var(--accent-dark); }
.story-meta { display: flex; align-items: center; justify-content: space-between; gap: 5px 8px; flex-wrap: wrap; }
.metadata { font-size: 13px; color: var(--muted); }
.model-link { display: inline-block; color: var(--accent-dark); font-weight: 670; border-radius: 5px; background: var(--accent-light); padding-inline: 5px; }
.model-link:hover, .category-link:hover { text-decoration: underline; }
.like { background: transparent; border: 1px solid var(--line); border-radius: 7px; padding: 3px 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.like:hover, .like[aria-pressed='true'] { background: var(--accent-light); color: var(--accent-dark); border-color: var(--accent-light); }

.home-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(232px, 27%); gap: 24px; align-items: start; margin-top: 29px; }
.feed { min-width: 0; scroll-margin-top: 16px; }
.feed-heading { margin-bottom: 8px; align-items: center; }
.feed-heading h3 { font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.classic-feed-controls { display: flex; align-items: center; gap: 8px; }
.sort-label select { background: var(--surface); border: 1px solid var(--line); padding: 4px 7px; font-size: 13px; border-radius: 6px; }
.feed-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; border-top: 1px solid var(--line); padding: 12px 4px; }
.feed-item:hover { background: var(--paper); }
.feed-open::after { content: ''; position: absolute; inset: 0; }
.feed-item .model-link, .feed-item .category-link, .feed-item .like { position: relative; z-index: 1; }
.feed-item h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.025em; font-weight: 720; overflow-wrap: anywhere; }
.feed-item .metadata { margin-top: 4px; }
.feed-item .metadata .tag { margin-inline-end: 6px; }
.feed-item .category-link { display: inline-block; padding: 1px 5px; border-radius: 4px; background: var(--accent-light); }
.feed-item .category-questions { background: #f1ebf8; color: #593883; }
.feed-item .category-gear { background: #e9eff7; color: #315076; }
.feed-item .category-free { background: #edf0f3; color: #404c62; }
.feed-stats { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.question-status { border: 1px solid #e7d7b4; background: #fff8e7; color: #715417; border-radius: 5px; padding: 2px 6px; font-size: 13px; font-weight: 650; }
.question-status.is-solved { border-color: #d3ddf0; background: #eef3fb; color: #334e81; }
.empty { border-top: 1px solid var(--line); padding: 15px 0; color: var(--muted); }
.routes { display: grid; gap: 9px; }
.route { display: grid; justify-items: start; gap: 3px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.route-start { background: var(--accent-light); border-color: #dce1fa; }
.route-start span:first-child { color: var(--accent-dark); }
.route:hover strong { color: var(--accent-dark); }
.route span { font-size: 13px; color: var(--muted); }
.route strong { font-size: 17px; letter-spacing: -.04em; line-height: 1.25; }
.ad-slot { background: #f0f1ef; border: 1px solid #dcdcda; border-radius: 10px; color: var(--muted); font-size: 14px; }
.ad-slot strong { color: var(--ink); }
.ad-label { display: inline-block; font-size: 12px; font-weight: 680; border: 1px solid #c7c9c3; border-radius: 4px; padding: 0 5px; background: #fff; line-height: 1.6; }
.partner-banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.partner-banner { position: relative; display: flex; align-items: center; min-height: 66px; gap: 8px; padding: 9px 12px; overflow: hidden; }
.partner-banner .ad-label { flex-shrink: 0; }
.partner-banner strong { overflow-wrap: anywhere; }
a.partner-banner:hover { border-color: #aeb7f9; }
.partner-banner.with-image { padding: 0; }
.partner-banner.with-image .ad-label { position: absolute; z-index: 1; inset: 6px auto auto 6px; }
.partner-banner img { display: block; width: 100%; aspect-ratio: 4 / 1; object-fit: contain; }
.partner-banner.partner-feature { display: block; min-height: 110px; padding: 0; border-color: #ddd5cc; border-radius: var(--radius); background: #d8cec3; }
.partner-feature .partner-photo { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 8%; }
.partner-feature .partner-brand { position: absolute; inset: 10px 12px auto auto; width: min(28%, 114px); }
.partner-feature .partner-brand img { aspect-ratio: auto; }
.partner-feature .ad-label { position: absolute; inset: auto 8px 8px auto; padding: 1px 6px; color: #fff; background: rgb(28 29 26 / 84%); border: 0; }
.network-ad { min-height: 220px; display: flex; flex-direction: column; align-items: start; gap: 7px; padding: 12px; }
.network-ad > div { margin: auto; text-align: center; }
.post-ad { display: flex; align-items: center; gap: 7px; padding: 9px 10px; min-height: 44px; }

.secondary-page { min-height: 58vh; }
.board-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.board-layout.has-ad { grid-template-columns: minmax(0, 1fr) minmax(200px, 25%); align-items: start; }
.board-main { min-width: 0; }
.board-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 14px; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.board-search-field { flex: 1 1 190px; max-width: 320px; }
.board-toolbar .board-filters { padding: 0; }
.board-toolbar .board-filters:has(> :not([hidden])) { margin-left: auto; }
.board-options { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.segments { min-width: 0; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 3px; border: 0; border-radius: 9px; background: var(--community-paper); }
.segments label { position: relative; cursor: pointer; }
.segments input { position: absolute; opacity: 0; }
.segments span { display: block; padding: 5px 8px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 670; }
.segments input:checked + span { border-color: var(--line); background: var(--surface); color: var(--accent-dark); }
.segments label:hover span { color: var(--accent-dark); }
.segments input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -1px; }
.view-segments { margin-inline-start: auto; }
.board-results { margin-top: 8px; }
.board-results-head { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 8px; }
.board-results-head .text-link { border: 0; background: none; }
.board-result { font-weight: 690; scroll-margin-top: 15px; }
.board-pages { display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.board-pages button:disabled { color: var(--muted); opacity: .55; }
.board-filters { display: flex; flex-wrap: wrap; gap: 7px 12px; padding-bottom: 10px; }
.board-filter, .board-filters label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 660; }
.board-filters select { background: var(--surface); border: 1px solid var(--line); padding: 5px 7px; border-radius: 6px; }
.board-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.board-gallery:not([hidden]) + div:not(:empty) { margin-top: 14px; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 16px; align-items: start; }
.guide-options, .guide-steps > section, .market-list article { padding: 19px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.guide-options > label { display: block; margin-top: 10px; font-weight: 680; }
.guide-options select { width: 100%; }
.guide-options p, .guide-steps p, .lesson p, .market-list p { margin-block: 7px; color: var(--muted); }
.guide-steps { display: grid; gap: 10px; }
.guide-row { display: flex; justify-content: space-between; gap: 5px 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 8px 0; margin-top: 7px; }
.guide-row a, .guide-steps section > a { color: var(--accent-dark); font-weight: 680; }
.lesson { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lesson > div:last-child { padding: 18px; }
.lesson h2 { margin-top: 6px; }
.market-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.market-list h2 { margin-top: 4px; overflow-wrap: anywhere; }
.listing-price { color: var(--ink); font-weight: 800; }

.post-page { max-width: 820px; min-height: 58vh; margin-inline: auto; padding-top: 24px; }
.page-path { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; color: var(--muted); }
.page-path .text-link:last-child { color: var(--accent-dark); }
.post-article { padding: clamp(16px, 4vw, 36px); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.post-header { margin-bottom: 18px; }
.post-header h1 { margin: 4px 0 8px; font-size: clamp(26px, 4vw, 42px); line-height: 1.15; font-weight: 830; letter-spacing: -.05em; overflow-wrap: anywhere; }
.post-meta { margin-top: 8px; }
.post-content { display: grid; gap: 14px; align-items: start; }
.post-content .photo { width: min(100%, 640px); border-radius: 10px; }
.post-content .photo:has(> .user-post-photo) { aspect-ratio: auto; }
.post-content .user-post-photo { height: auto; }
.post-content p { overflow-wrap: anywhere; }
.post-text { white-space: pre-wrap; font-size: 17px; line-height: 1.72; }
.post-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.post-actions .like { padding: 8px 12px; font-weight: 700; border-radius: 10px; }
.post-bookmark[aria-pressed='true'] { background: var(--accent-light); color: var(--accent-dark); }
.post-bookmark { margin-inline-start: auto; }
.post-comments { border-top: 1px solid var(--line); padding-top: 13px; }
.post-comments h2 { font-size: 17px; margin-bottom: 10px; }
.comment-thread { margin-block: 8px; padding: 11px clamp(11px, 2vw, 16px); border-radius: 12px; background: var(--paper); }
.comment-entry { min-width: 0; padding: 0; border-radius: 5px; }
.comment-replies { display: grid; min-width: 0; gap: 12px; margin: 9px 0 0 clamp(18px, 4vw, 36px); }
.comment-entry.is-target { background: var(--accent-light); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 7px; row-gap: 0; min-width: 0; font-size: .875rem; line-height: 1.45; }
.comment-meta .comment-author { font-weight: 740; overflow-wrap: anywhere; }
.comment-meta .metadata { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.comment-level {
  --level-shape: polygon(7% 0, 93% 0, 100% 16%, 100% 65%, 86% 87%, 50% 100%, 14% 87%, 0 65%, 0 16%);
  --level-edge: hsl(var(--level-hue) 30% 67%);
  --level-fill: hsl(var(--level-hue) 41% 91%);
  --level-inset: 1px;
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  min-inline-size: 33px;
  min-block-size: 19px;
  padding: 2px 5px 4px;
  color: hsl(var(--level-hue) 58% 21%);
  font-size: .65rem;
  font-weight: 790;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.comment-level::before, .comment-level::after { content: ''; position: absolute; clip-path: var(--level-shape); }
.comment-level::before { z-index: -2; inset: 0; background: var(--level-edge); }
.comment-level::after { z-index: -1; inset: var(--level-inset); background: var(--level-fill); }
.comment-level[data-tier='frame'] {
  --level-edge: linear-gradient(155deg, hsl(var(--level-hue) 60% 56%), hsl(var(--level-hue) 46% 66%));
  --level-fill: linear-gradient(#fff, hsl(var(--level-hue) 58% 88%));
}
.comment-level[data-tier='metal'] {
  --level-inset: 1.5px;
  --level-edge: linear-gradient(135deg, hsl(var(--level-hue) 58% 47%), hsl(var(--level-hue) 82% 77%) 42%, hsl(var(--level-hue) 60% 43%));
  --level-fill: linear-gradient(148deg, hsl(var(--level-hue) 90% 96%), hsl(var(--level-hue) 77% 81%));
  padding-inline: 6px;
}
.comment-level[data-tier='gem'] {
  --level-shape: polygon(14% 0, 86% 0, 100% 30%, 100% 69%, 86% 94%, 50% 100%, 14% 94%, 0 69%, 0 30%);
  --level-inset: 1.5px;
  --level-edge: linear-gradient(140deg, hsl(var(--level-hue) 73% 46%), hsl(var(--level-hue) 90% 80%) 35%, hsl(var(--level-hue) 78% 46%) 70%, hsl(var(--level-hue) 82% 63%));
  --level-fill: linear-gradient(130deg, hsl(var(--level-hue) 79% 86%), hsl(var(--level-hue) 90% 97%) 46%, hsl(var(--level-hue) 82% 82%));
  min-block-size: 20px;
  padding-inline: 7px;
  filter: drop-shadow(0 1px 1px hsl(var(--level-hue) 54% 35% / .28));
}
.comment-level:is([data-tier='wings'], [data-tier='crown'], [data-tier='laurel'], [data-tier='radiant'], [data-tier='master']) {
  --level-shape: polygon(8% 23%, 19% 25%, 27% 6%, 73% 6%, 81% 25%, 92% 23%, 100% 10%, 97% 55%, 84% 66%, 82% 83%, 50% 100%, 18% 83%, 16% 66%, 3% 55%, 0 10%);
  --level-inset: 1.5px;
  --level-edge: linear-gradient(125deg, hsl(var(--level-hue) 85% 42%), #fff4bd 29%, hsl(var(--level-hue) 83% 50%) 67%, hsl(var(--level-hue) 85% 68%));
  --level-fill: linear-gradient(135deg, hsl(var(--level-hue) 88% 79%), #fffcec 48%, hsl(var(--level-hue) 90% 84%));
  min-block-size: 21px;
  padding-inline: 11px;
  filter: drop-shadow(0 1px 2px hsl(var(--level-hue) 65% 40% / .36));
}
.comment-level[data-tier='crown'] {
  --level-shape: polygon(9% 25%, 21% 28%, 26% 9%, 39% 17%, 50% 0, 61% 17%, 74% 9%, 79% 28%, 91% 25%, 100% 11%, 97% 58%, 83% 70%, 80% 88%, 50% 100%, 20% 88%, 17% 70%, 3% 58%, 0 11%);
  min-block-size: 22px;
  padding-inline: 12px;
  filter: drop-shadow(0 1px 2px hsl(var(--level-hue) 74% 42% / .48));
}
.comment-level[data-tier='laurel'] {
  --level-shape: polygon(0 14%, 13% 28%, 20% 19%, 26% 26%, 32% 4%, 43% 10%, 50% 0, 57% 10%, 68% 4%, 74% 26%, 80% 19%, 87% 28%, 100% 14%, 97% 48%, 86% 60%, 88% 72%, 67% 83%, 50% 100%, 33% 83%, 12% 72%, 14% 60%, 3% 48%);
  min-block-size: 23px;
  padding-inline: 13px;
}
.comment-level[data-tier='radiant'] {
  --level-shape: polygon(0 18%, 10% 26%, 15% 11%, 24% 19%, 32% 3%, 42% 12%, 50% 0, 58% 12%, 68% 3%, 76% 19%, 85% 11%, 90% 26%, 100% 18%, 98% 52%, 89% 65%, 79% 67%, 79% 79%, 65% 88%, 50% 100%, 35% 88%, 21% 79%, 21% 67%, 11% 65%, 2% 52%);
  --level-edge: linear-gradient(115deg, hsl(var(--level-hue) 79% 35%), #fff3bd 26%, hsl(var(--level-hue) 91% 47%) 58%, #fff7d1 78%, hsl(var(--level-hue) 88% 42%));
  --level-fill: linear-gradient(128deg, hsl(var(--level-hue) 86% 80%), #fffcef 42%, hsl(var(--level-hue) 83% 87%) 67%, #fff7dc);
  min-block-size: 24px;
  padding-inline: 14px;
  filter: drop-shadow(0 1px 2px hsl(var(--level-hue) 75% 42% / .55));
}
.comment-level[data-tier='master'] {
  --level-shape: polygon(0 15%, 13% 22%, 18% 7%, 30% 16%, 36% 3%, 44% 9%, 50% 0, 56% 9%, 64% 3%, 70% 16%, 82% 7%, 87% 22%, 100% 15%, 97% 48%, 91% 55%, 93% 66%, 77% 76%, 72% 88%, 50% 100%, 28% 88%, 23% 76%, 7% 66%, 9% 55%, 3% 48%);
  --level-inset: 2px;
  --level-edge: linear-gradient(115deg, #60438d, #bb7d2a 20%, #ffdc78 39%, #9d611b 58%, #ffe4a0 76%, #735097 95%);
  --level-fill: linear-gradient(135deg, #f6cc73, #fff9e4 36%, #f4ce77 65%, #fff2b7);
  min-block-size: 25px;
  padding-inline: 15px;
  font-weight: 860;
  filter: drop-shadow(0 1px 3px #b47d3375);
}
.comment-entry p { margin: 3px 0 0; font-size: .875rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 1px; }
.comment-reply { min-height: 29px; padding: 3px 2px; border: 0; border-radius: 4px; background: none; color: var(--accent-dark); font-size: .8125rem; font-weight: 680; }
.comment-reply:hover, .comment-reply[aria-expanded='true'] { text-decoration: underline; }
.comment-delete, .comment-entry .comment-deleted { color: var(--muted); }
.comment-delete:hover { color: #8d3933; }
.comment-form { display: grid; min-width: 0; gap: 5px; margin-top: 13px; }
.comment-reply-form { margin-top: 0; }
.comment-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 7px; }
.comment-form textarea { field-sizing: content; min-width: 0; min-height: 37px; max-height: 160px; width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; line-height: 1.45; resize: vertical; }
.comment-input-row .solid-button { min-height: 37px; padding: 6px 11px; font-size: .8125rem; white-space: nowrap; }
.comment-form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.comment-form-actions .profile-reward { margin-inline-end: auto; }
@media (max-width: 520px) {
  .comment-reply { min-height: 36px; }
  .comment-form textarea, .comment-input-row .solid-button { min-height: 42px; }
  .comment-form textarea { font-size: 1rem; }
}

.machine-sections, .activity-content { display: grid; gap: 16px; }
.machine-group, .activity-panel { min-width: 0; padding: clamp(13px, 2.5vw, 22px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.machine-group h2, .activity-panel h2 { margin-bottom: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.035em; }
.machine-group .board-gallery + .feed-item { margin-top: 10px; }
.activity-row { display: grid; grid-template-columns: minmax(70px, 26%) minmax(0, 1fr); align-items: baseline; gap: 6px 14px; border-top: 1px solid var(--line); padding-block: 10px; }
.activity-link { color: var(--accent-dark); font-weight: 670; overflow-wrap: anywhere; }
.activity-link:hover { text-decoration: underline; }
.activity-content { padding-bottom: 8px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 28px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; padding-block: 13px; color: var(--muted); font-size: 13px; }
.footer-brand { color: var(--ink); font-weight: 820; }
.footer-inner > a:last-child { margin-inline-start: auto; }

dialog { width: min(580px, 100% - 24px); max-height: calc(100% - 30px); padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgb(21 19 18 / .56); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.dialog-content p { white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-content > * + * { margin-top: 10px; }
.dialog-content ul { padding-inline-start: 20px; }
.compose-form { display: grid; gap: 8px; }
.compose-form > label, .compose-equipment label { font-weight: 690; }
.compose-equipment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.compose-equipment > div { display: grid; min-width: 0; gap: 6px; }
.compose-form textarea { resize: vertical; }
.compose-form small { color: var(--muted); }
.compose-form input, .compose-form select, .compose-form textarea, .guide-options select { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 7px 9px; }
.compose-form button { justify-self: end; }

@media (max-width: 950px) {
  .shell { width: min(1264px, 100% - 48px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 7px; min-height: 0; padding-top: 8px; }
  .nav { grid-column: 1 / -1; grid-row: 2; column-gap: 16px; row-gap: 0; flex-wrap: wrap; margin-top: 6px; }
  .nav a { padding-block: 8px; }
  .home-bottom { gap: 14px; }
  .featured-grid { gap: 8px; }
  .story-body { padding-inline: 9px; }
}

@media (max-width: 760px) {
  .home-intro { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .intro-copy { padding: 28px; }
  .intro-copy h1 { font-size: clamp(2.75rem, 7.1vw, 3.8rem); }
  .intro-visual { height: clamp(210px, 43vw, 315px); }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .nav { column-gap: 10px; }
  .nav a { font-size: 14px; }
  .brand { font-size: 22px; }
  .page-heading { padding-block: 20px 15px; }
  .page-heading p { font-size: 14px; }
  .search { width: 100%; }
  .partner-banners { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 20px; }
  .partner-banner { min-height: 44px; }
  .home-intro { margin-block: 16px 12px; border-radius: 18px; }
  .featured-actions { width: 100%; }
  .featured-actions .search { min-width: 0; flex: 1; }
  .home-bottom, .guide-layout, .board-layout.has-ad { grid-template-columns: minmax(0, 1fr); }
  .network-ad { min-height: 80px; }
  .board-search-field { flex-basis: 100%; max-width: none; }
  .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 24px); }
  .intro-copy { padding: 23px 18px 20px; }
  .intro-copy h1 { font-size: clamp(2.25rem, 9.6vw, 3.2rem); }
  .intro-copy p { font-size: 1rem; margin-block: 12px 16px; }
  .intro-visual { height: auto; aspect-ratio: 1.57; }
  .intro-visual figcaption { right: 9px; bottom: 9px; padding: 5px 8px; font-size: 12px; }
  .featured-actions { flex-wrap: wrap; }
  .featured-actions .search { flex-basis: 195px; }
  .section-heading h2 { font-size: 21px; }
  .featured-grid, .board-gallery { grid-template-columns: minmax(0, 1fr); }
  .story { display: grid; grid-template-columns: minmax(104px, 36%) minmax(0, 1fr); align-items: center; }
  .story .photo { align-self: center; }
  .story-body h3 { margin-bottom: 4px; }
  .story-body { padding: 8px; }
  .story-meta .metadata { font-size: 12px; }
  .feed-item { grid-template-columns: minmax(0, 1fr); }
  .feed-stats { flex-wrap: wrap; gap: 5px; }
  .route { padding: 9px; }
  .route strong { font-size: 17px; }
  .market-list { grid-template-columns: minmax(0, 1fr); }
}

@media (pointer: coarse) {
  .nav a, button, select { min-height: 44px; }
}
