/* Windmello website: the cozy_v1 kit (godot-client/assets/ui/cozy_v1/tokens.json,
   panels/*, buttons/*, painted/window.png, painted/title.png) on the web.
   No inline styles anywhere: the Content-Security-Policy (site.go) does not allow them. */
:root {
  --ink: #493724; --muted: #6b5840; --paper: #f7edd8; --paper-deep: #e7d4b0; --ground: #efe2c6;
  --honey: #b28d51; --sage: #537b43; --cream: #fff8e9; --danger: #993f32; --line: #cfb88d;
  --wood: #493724; --wood-hi: #5a4430; --link: #3f6531; --link-hover: #2c4a22;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 "Noto Sans Thai", system-ui, sans-serif; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--cream); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #9cbf7f; outline-offset: 2px; }

/* painted window frame (9-slice) */
.win { border-style: solid; border-width: 22px; border-image: url(img/frame-window.webp) 44 fill / 22px stretch; padding: 6px; }
.win-sm { border-style: solid; border-width: 16px; border-image: url(img/frame-window.webp) 44 fill / 16px stretch; padding: 4px; }
.inset { background: linear-gradient(#eee0c4, #f8edd8); border: 2px solid var(--line); border-radius: 14px; box-shadow: inset 0 0 0 3px rgba(255,250,240,.6); }
.slot { background: #f5ead3; border: 2px solid #c7b089; border-radius: 12px; box-shadow: inset 0 0 0 3px rgba(255,248,233,.7); }
.ribbon { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; min-width: 240px; border-style: solid; border-width: 15px 34px;
  border-image: url(img/frame-ribbon.webp) 30 68 fill / 15px 34px stretch; padding: 0 6px; font-weight: 800; font-size: 22px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 11px; border: 2px solid #ad8b51;
  font: 700 16px "Noto Sans Thai", sans-serif; text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,246,220,.42), 0 3px 0 #8e6f3e; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px rgba(255,246,220,.42), 0 1px 0 #8e6f3e; }
.btn img { width: 28px; height: 28px; }
.btn-primary { background: linear-gradient(#719359, #456d38); color: var(--cream); }
.btn-primary:hover { background: linear-gradient(#7ea266, #4d7a3f); color: var(--cream); }
.btn-secondary { background: linear-gradient(#fff7e7, #ead7b3); color: var(--ink); }
.btn-secondary:hover { background: linear-gradient(#fffaf0, #f0dfbf); color: var(--ink); }
.btn-danger { background: linear-gradient(#b6654f, #8d3b30); color: var(--cream); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 18px; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 15px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; border: 1.5px solid; }
.chip-ann { background: #f6ddd2; color: #7d3125; border-color: #d9a08f; }
.chip-evt { background: #f8e8c2; color: #6a4b14; border-color: #d8b46c; }
.chip-upd { background: #e0ead2; color: #2f5225; border-color: #a8c08f; }
.chip-lang { background: #ece6da; color: #5b4a33; border-color: #cdbf9f; font-size: 11px; letter-spacing: .04em; }
.lang-note { margin: 0 0 14px; }
.chip img { width: 20px; height: 20px; }

/* form */
.fld { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line); background: #fffaf0; font: 500 16px "Noto Sans Thai", sans-serif; color: var(--ink); }
.lbl { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.search { position: relative; }
.search img { position: absolute; left: 10px; top: 10px; width: 28px; height: 28px; }
.search .fld { padding-left: 46px; }

/* header */
.site-header { background: var(--cream); border-bottom: 3px solid var(--honey); box-shadow: 0 3px 0 var(--paper-deep); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 8px; padding-bottom: 8px; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a img { width: 28px; height: 28px; }
.nav a:hover { background: rgba(178,141,81,.18); }
.nav a[aria-current="page"] { background: var(--cream); box-shadow: inset 0 0 0 2px var(--line); }

/* footer */
.site-footer { background: linear-gradient(var(--wood-hi), var(--wood)); color: #f3e6c9; border-top: 3px solid var(--honey); margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; padding-top: 32px; padding-bottom: 32px; font-size: 15px; }
.site-footer .brand-badge { background: var(--cream); border-radius: 10px; padding: 6px 10px; height: 40px; width: auto; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #f8e3a8; }
.footer-brand { flex: 1 1 260px; }

/* home: hero */
.hero { background: url(img/bg-hero.webp) 30% 40% / cover; min-height: 600px; display: flex; align-items: center; }
.hero .wrap { display: flex; justify-content: flex-end; width: 100%; padding-top: 48px; padding-bottom: 48px; }
.hero-card { flex: 0 1 520px; position: relative; }
.hero-card .leaf { position: absolute; top: -34px; right: -30px; width: 120px; transform: scaleX(-1); pointer-events: none; }
.stack { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.hero h1 { font-weight: 800; font-size: 44px; }
.lead { font-size: 18px; line-height: 1.7; margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.self-start { align-self: flex-start; }
.status-strip { margin-top: -28px; position: relative; }
.status-strip .inset { background: var(--cream); padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.status-strip img { width: 26px; height: 26px; }
.status-item { display: flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: #9b8c74; }
.dot-on { background: var(--sage); box-shadow: 0 0 0 3px #e0ead2; }
.dot-off { background: var(--danger); box-shadow: 0 0 0 3px #f6ddd2; }
.push-right { margin-left: auto; font-weight: 700; }

/* sections */
.section { padding-top: 48px; padding-bottom: 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.center { text-align: center; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.grid-classes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.grid-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.empty { padding: 24px; text-align: center; }

/* post cards */
.card { display: block; text-decoration: none; color: inherit; }
.card:hover .card-title { text-decoration: underline; }
.card-cover { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 10px; border: 2px solid #c7b089; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 8px 8px; }
.card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.card-title { font-weight: 800; font-size: 20px; }
.card-sum { margin: 0; }
.list { display: flex; flex-direction: column; gap: 14px; }
.list .card > div { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.list .card-cover { flex: 0 0 180px; width: 180px; height: 112px; }
.list .card-body { flex: 1 1 300px; min-width: 0; padding: 4px; }

/* classes and features */
/* Each class keeps its whole weapon silhouette at every viewport width. */
.class-heading { justify-content: center; text-align: center; gap: 10px; flex-direction: column; }
.class-heading p { max-width: 42ch; margin: 0; }
.class-card { --class-tint: #dce5d2; text-align: center; min-width: 0; }
.class-mage { --class-tint: #e5ddef; }
.class-archer { --class-tint: #dce5c9; }
.class-dancer { --class-tint: #f0ddd5; }
.class-binder { --class-tint: #d5e9e1; }
.class-pic { position: relative; height: 260px; isolation: isolate; }
.class-pic::before { content: ""; position: absolute; inset: 12% 2% 4%; border-radius: 48% 48% 12% 12%; background: var(--class-tint); z-index: -1; }
.class-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.class-info { padding: 12px 0 8px; }
.class-name { font-weight: 800; font-size: 18px; margin: 0; }
.class-weapon { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.class-role { margin: 4px 0 0; font-size: 14px; }
.class-caption { text-align: center; font-size: 13px; margin: 18px 0 0; }
@media (max-width: 1100px) and (min-width: 761px) {
  .grid-classes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .class-card { grid-column: span 2; }
  .class-card:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 760px) {
  .grid-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .class-card:last-child { grid-column: 1 / -1; width: calc((100% - 12px) / 2); justify-self: center; }
  .class-pic { height: 220px; }
  .class-name { font-size: 17px; }
}
@media (max-width: 420px) {
  .class-section { padding-left: 12px; padding-right: 12px; }
  .class-pic { height: 190px; }
}
@media (max-width: 360px) {
  .grid-classes { grid-template-columns: minmax(0, 1fr); max-width: 280px; margin: 0 auto; }
  .class-card:last-child { grid-column: auto; width: auto; justify-self: stretch; }
  .class-pic { height: 260px; }
}
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 8px 8px 10px; }
.feature img { width: 56px; height: 56px; flex: 0 0 auto; }
.feature h3 { font-size: 18px; margin: 4px 0; }
.feature p { margin: 0; font-size: 15px; }

/* news page */
.banner { background: url(img/bg-village.webp) center 45% / cover; border-bottom: 3px solid var(--honey); }
.banner .wrap { padding-top: 40px; padding-bottom: 36px; }
.banner .win { display: inline-block; max-width: 100%; }
.banner h1 { font-size: 38px; font-weight: 800; }
.banner p { margin: 2px 0 0; }
.page { padding-top: 32px; padding-bottom: 48px; }
.pinned { margin-bottom: 28px; }
.pinned-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 4px 8px; }
.pinned-row > img { width: 64px; height: 64px; }
.pinned-main { flex: 1 1 380px; min-width: 0; }
.pinned-title { font-weight: 800; font-size: 22px; margin-top: 6px; }
.layout-2 { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.aside { flex: 1 1 250px; max-width: 100%; display: flex; flex-direction: column; gap: 18px; }
.main { flex: 999 1 600px; min-width: 0; }
.tabs { display: flex; flex-direction: column; gap: 6px; padding: 4px; }
.tab { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; border: 2px solid transparent; }
.tab img { width: 30px; height: 30px; }
.tab:hover { background: rgba(178,141,81,.12); }
.tab[aria-current="page"] { border-color: var(--honey); background: var(--cream); box-shadow: 0 2px 0 var(--line); }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; }
.htmx-request .list { opacity: .55; transition: opacity .15s; }

/* post page */
.post-cover { display: block; width: 100%; height: 280px; object-fit: cover; border-radius: 10px; border: 2px solid #c7b089; }
.post-head { padding: 20px 12px 0; }
.post-head h1 { font-size: 32px; font-weight: 800; margin: 10px 0 8px; }
.prose { padding: 8px 12px 16px; font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: 24px; margin: 28px 0 10px; }
.prose h3 { font-size: 20px; margin: 22px 0 8px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid #d9c49c; padding: 8px 10px; text-align: left; }
.prose code { background: #efe2c6; border-radius: 6px; padding: 1px 6px; }
.prose img { border-radius: 10px; }
.post-wrap { max-width: 860px; margin: 0 auto; }
.back { display: inline-flex; margin-bottom: 16px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 160px; }
  .hero h1 { font-size: 34px; }
  .ribbon { min-width: 0; font-size: 19px; }
  .list .card-cover { flex-basis: 100%; width: 100%; height: 150px; }
  .post-cover { height: 180px; }
  .post-head h1 { font-size: 26px; }
  /* logo and the play button share the first row; the menu takes the second */
  .site-header .brand img { width: 148px; height: auto; }
  .site-header .head-play { order: 2; margin-left: auto; }
  .site-header .nav { order: 3; flex-basis: 100%; justify-content: space-between; }
  /* the list comes right after a compact search and one row of category chips */
  .aside { gap: 10px; }
  .aside .win-sm { padding: 10px; }
  .aside .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tabs { flex-direction: row; overflow-x: auto; padding: 2px; }
  .tab { flex: 0 0 auto; }
}
.center .row { justify-content: center; }

/* sign-in and account pages (site_account.go) */
.nav-account { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-account img { width: 28px; height: 28px; }
.nav-account:hover { background: rgba(178,141,81,.18); }
.nav-account[aria-current="page"] { background: var(--cream); box-shadow: inset 0 0 0 2px var(--line); }
.small { font-size: 15px; }
.strong { font-weight: 800; }
.alert { padding: 10px 14px; border-radius: 12px; border: 2px solid; font-weight: 600; }
.alert-ok { background: #e3eed6; border-color: #a8c08f; color: #2f5225; }
.alert-error { background: #f6ddd2; border-color: #d9a08f; color: #7d3125; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; }
.check input { width: 22px; height: 22px; }
.discord-dm { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 2px; }
.discord-dm legend { padding: 0; margin-bottom: 4px; }
.gis-slot { min-height: 44px; display: flex; justify-content: center; }
.login-scene { background: url(img/bg-hero.webp) 35% 50% / cover no-repeat; min-height: calc(100vh - 66px); display: flex; align-items: center; }
.login-wrap { width: 100%; display: flex; justify-content: flex-end; padding-top: 32px; padding-bottom: 48px; }
.login-card { position: relative; flex: 0 1 460px; min-width: 0; }
.login-leaf { position: absolute; top: -30px; right: -26px; width: 104px; transform: scaleX(-1); pointer-events: none; }
.login-stack { gap: 14px; padding: 10px 14px 12px; }
.login-mark { width: 280px; max-width: 100%; height: auto; }
.login-tag { font-weight: 700; font-size: 18px; }
.login-title { font-weight: 800; font-size: 22px; text-align: center; }
.login-lead { margin: -6px 0 0; }
.login-note { padding: 12px 14px; text-align: center; }
.login-guest { width: 100%; }
.tip { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; font-size: 15px; line-height: 1.6; }
.tip img { width: 36px; height: 36px; flex: 0 0 auto; }
.info { padding: 8px 14px; font-size: 15px; }
.info summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 32px; }
.info p { margin: 6px 0 0; }
.account-page { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 28px; padding-bottom: 64px; }
.account-menu { flex: 1 1 220px; position: sticky; top: 12px; }
.account-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.account-main section { scroll-margin-top: 16px; }
.overview { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 4px 8px; }
.avatar { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.avatar img { width: 72px; height: 72px; object-fit: contain; }
.overview-text { flex: 1 1 240px; min-width: 0; }
.overview-text h1 { font-weight: 800; font-size: 28px; }
.mono-id { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.kind-box { padding: 10px 16px; min-width: 150px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sec { padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 14px; }
.sec .ribbon { font-size: 20px; align-self: flex-start; }
.warn-box, .danger-box { padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.warn-box { background: linear-gradient(#f8e8c2, #fbf0d6); border-color: #d8b46c; }
.warn-box img { width: 40px; height: 40px; flex: 0 0 auto; }
.danger-box { flex-direction: column; background: linear-gradient(#f6ddd2, #fbebe3); border-color: #d9a08f; }
.danger-box p { margin: 0; }
.danger-box[hidden], .warn-box[hidden] { display: none; }
.provider { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 14px; }
.provider-text { flex: 1 1 200px; min-width: 0; }
.g-badge { width: 42px; height: 42px; border-radius: 12px; background: #4a6fb0; color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 2px solid var(--cream); box-shadow: 0 0 0 2px #c7b089; }
.linked { display: inline-flex; align-items: center; gap: 4px; color: #2f5225; font-weight: 700; }
.linked img { width: 28px; height: 28px; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.char-card { padding: 12px; display: flex; gap: 14px; align-items: center; }
.char-pic { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.char-pic img { width: 60px; height: 60px; object-fit: contain; }
.char-empty { opacity: .75; }
.char-empty img { width: 40px; height: 40px; }
.sec-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.sec-label { display: flex; gap: 10px; align-items: center; }
.sec-label img { width: 36px; height: 36px; }
@media (max-width: 640px) {
  .site-header .nav-account { order: 2; margin-left: auto; }
  .site-header .head-play { margin-left: 0; }
  .login-wrap { justify-content: center; }
  .login-leaf { width: 72px; right: -12px; }
  .account-menu { display: none; }
  .site-header .nav-account { padding: 0 8px; }
  .site-header .nav { flex-wrap: nowrap; gap: 0; }
  .site-header .nav a { padding: 0 5px; gap: 3px; font-size: 15px; }
  .site-header .nav a img { width: 22px; height: 22px; }
  .nav-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* language switch (site_i18n.go): the other language's name, shared with the game through wm_lang */
.nav-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: inset 0 0 0 2px var(--line); }
.nav-lang:hover { background: rgba(178,141,81,.18); }
.nav-lang + .nav-account { margin-left: 0; }
@media (max-width: 640px) {
  .site-header .nav-lang { order: 2; margin-left: auto; }
  .site-header .nav-lang + .nav-account { margin-left: 0; }
  .site-header .nav-admin + .nav-account { margin-left: 0; }
}
/* back office link (team members only, site_account.go headerFor) */
.nav-admin + .nav-account { margin-left: 0; }

/* events (site_events.go) */
.chip.state-running { background: #e0ead2; color: #2f5225; border-color: #a8c08f; }
.chip.state-upcoming { background: #f8e8c2; color: #6a4b14; border-color: #d8b46c; }
.chip.state-ended { background: #eee3cf; color: var(--muted); border-color: var(--line); }
.event-card { color: var(--ink); text-decoration: none; }
.event-panel { margin: 8px 12px 18px; display: flex; flex-direction: column; gap: 12px; }
.event-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.event-note { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.event-progress { font-size: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px; }
.step-days { display: flex; flex-direction: column; align-items: center; min-width: 52px; line-height: 1.1; }
.step-n { font-size: 26px; font-weight: 800; }
.step-rewards { flex: 1 1 220px; min-width: 0; }
.reward { font-weight: 700; white-space: nowrap; }
.step-action { margin-left: auto; }
.step-reached { border-color: #a8c08f; background: #eef4e4; }
.step-claimed { opacity: .8; }
.done { display: inline-flex; align-items: center; gap: 4px; color: #2f5225; font-weight: 700; }
.done img { width: 26px; height: 26px; }
.tiny-lock { width: 18px; height: 18px; vertical-align: -3px; margin-right: 2px; }
.step-goal { flex: 0 1 260px; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.meter { display: flex; align-items: center; gap: 8px; }
.meter progress { flex: 1 1 auto; height: 12px; accent-color: var(--sage); }
.redeem-form { display: flex; flex-wrap: wrap; gap: 10px; }
.redeem-form .fld { flex: 1 1 220px; text-transform: uppercase; }
/* Public status page (status.html, W8). */
.status-page h1 { margin-bottom: 16px; }
.status-hero { display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.status-hero .dot { width: 16px; height: 16px; }
.status-headline { font-size: 22px; font-weight: 800; margin: 0; }
.status-list { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 8px; }
.status-list li { display: flex; align-items: center; gap: 10px; background: var(--cream); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; }
/* /in-progress (site_dev_status.go, in_progress.js) */
.dev-board { display: flex; flex-direction: column; gap: 16px; }
.dev-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: rgba(73,55,36,.1); color: var(--ink); font-size: 13px; font-weight: 800; }
.dev-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dev-step { min-width: 0; }
.dev-step { position: relative; }
.dev-step a { display: flex; align-items: center; gap: 8px; height: 100%; min-height: 56px; padding: 8px 12px; border-radius: 14px; background: var(--cream);
  border: 2px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.3;
  box-shadow: inset 0 0 0 3px rgba(255,250,240,.6), 0 2px 0 rgba(142,111,62,.35); }
.dev-step a:hover { border-color: var(--honey); color: var(--ink); }
.dev-step + .dev-step::before { content: "›"; position: absolute; left: -9px; top: 50%; transform: translateY(-55%); color: var(--honey); font-size: 22px; font-weight: 800; }
.dev-step-n { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--wood); color: var(--cream); font-size: 13px; font-weight: 800; }
.dev-step-emoji { font-size: 20px; }
.dev-step-label { flex: 1 1 auto; }
.dev-step-waiting a { background: #f1ece2; }
.dev-step-updating a { background: #f8e8c2; border-color: #d8b46c; }
.dev-step-shipped a { background: #e0ead2; border-color: #a8c08f; }
.dev-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line);
  background: #fffaf0; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.dev-tab:hover { border-color: var(--honey); color: var(--ink); }
.dev-tab[aria-current="true"] { background: var(--wood); border-color: var(--wood); color: var(--cream); }
.dev-tab[aria-current="true"] .dev-count { background: rgba(255,248,233,.22); color: var(--cream); }
.dev-since { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff3cf; border: 2px solid #e2c27a; font-weight: 700; }
/* the board uses wide screens (the rest of the site stays 1200px): 4 columns along
   the steps on wide screens, 2 on tablets, 1 on phones */
.dev-page { max-width: 1800px; }
.dev-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 700px) { .dev-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) {
  .dev-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .dev-cols > .dev-group + .dev-group::before { content: "›"; position: absolute; left: -31px; top: 16px; color: var(--honey); font-size: 26px; font-weight: 800; }
  .dev-steps { display: none; } /* the column heads are the steps */
  .dev-cols .dev-head { font-size: 17px; }
  .dev-cols .dev-item { font-size: 14px; padding: 8px 10px; }
}
@media (min-width: 1600px) { .dev-page { padding-left: 40px; padding-right: 40px; } .dev-cols .dev-item { font-size: 15px; } .dev-cols .dev-head { font-size: 19px; } }
.dev-group { position: relative; min-width: 0; }
.dev-head { display: flex; align-items: center; gap: 8px; margin: 2px 4px 10px; font-size: 20px; font-weight: 800; line-height: 1.3; }
.dev-head-label { min-width: 0; }
.dev-head .dev-step-n { width: 22px; height: 22px; font-size: 12px; }
.dev-head-emoji { font-size: 22px; }
.dev-head .dev-count { margin-left: auto; }
.dev-updating .dev-head-emoji { animation: dev-roll 1.6s ease-in-out infinite; }
@keyframes dev-roll { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .dev-updating .dev-head-emoji { animation: none; } }
.dev-day { margin: 12px 4px 6px; font-size: 14px; font-weight: 800; color: var(--muted); }
.dev-day:first-of-type { margin-top: 0; }
.dev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dev-item { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 9px 12px; border-radius: 12px;
  background: var(--cream); border: 2px solid var(--line); font-size: 15px; line-height: 1.45; }
.dev-title { flex: 1 1 12em; font-weight: 700; }
.dev-meta { margin-left: auto; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 10px; }
.dev-meta:empty { display: none; }
.dev-when, .dev-took { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.dev-took::before { content: "⏱ "; }
.dev-summary { margin: 0; font-weight: 700; color: var(--muted); }
.dev-waiting .dev-item { background: #f6f1e7; }
.dev-updating .dev-item { background: #f8e8c2; border-color: #d8b46c; }
.dev-shipped .dev-item { background: #e8f0dc; border-color: #b4c99c; }
.dev-paused .dev-item { opacity: .75; }
.dev-kind { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; padding: 0 8px; border-radius: 999px; border: 1.5px solid; background: #fffaf0;
  font-size: 12px; font-weight: 800; line-height: 20px; }
.kind-new.dev-kind, .dev-tab.kind-new { color: #2f6b3a; border-color: #8fbf8f; }
.kind-change.dev-kind, .dev-tab.kind-change { color: #34557d; border-color: #9fb4cc; }
.kind-fix.dev-kind, .dev-tab.kind-fix { color: #8a3b2e; border-color: #d9a08f; }
.dev-tab.kind-new[aria-current="true"], .dev-tab.kind-change[aria-current="true"], .dev-tab.kind-fix[aria-current="true"] { color: var(--cream); border-color: var(--wood); }
.dev-item.is-new { border-color: #d39b2a; box-shadow: 0 0 0 3px rgba(233,178,64,.28); }
.dev-badge { flex: 0 0 auto; padding: 0 8px; border-radius: 999px; background: #d98a1f; color: #fffaf0; font-size: 12px; font-weight: 800; line-height: 20px; }
.dev-none { margin: 4px 4px 2px; }
.dev-older { margin-top: 10px; }
.dev-older summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--link); padding: 6px 4px; }
.dev-notes { margin: 10px 4px 2px; }
.dev-foot { margin: 0; }
@media (max-width: 760px) {
  .dev-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dev-step + .dev-step::before { display: none; }
  .dev-step a { min-height: 48px; gap: 6px; padding: 6px 8px; font-size: 14px; }
  .dev-step-n { width: 20px; height: 20px; font-size: 12px; }
  .dev-step-emoji { font-size: 17px; }
}
.status-sub { margin: 24px 0 12px; }
.status-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.status-zone { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.status-zone-head { display: flex; justify-content: space-between; gap: 8px; }
.status-chs { display: flex; flex-wrap: wrap; gap: 6px; }
.status-ch { font-size: 14px; font-weight: 700; border-radius: 10px; padding: 2px 10px; border: 1.5px solid var(--line); background: #fffaf0; }
.status-ch.load-ok { background: #e3eed6; border-color: #a8c08f; }
.status-ch.load-busy { background: #f8e8c2; border-color: #d8b46c; }
.status-ch.load-full { background: #f6ddd2; border-color: #d9a08f; }

/* Party voice room (site_voice.go, voice.html) */
.voice-page { max-width: 560px; margin: 0 auto; }
.voice-page .tip { text-align: left; }
.voice-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; }
.voice-steps li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 48px; border: 2px solid var(--line); border-radius: 14px; position: relative; counter-increment: vstep; }
.voice-steps { counter-reset: vstep; }
.voice-steps li::before { content: counter(vstep); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--paper-deep); }
.voice-steps li.done::before { content: "✓"; background: var(--sage); color: var(--cream); }
.voice-steps li.now { border-color: var(--sage); }
.voice-steps li.now::before { background: var(--sage); color: var(--cream); }

/* rankings (site_rankings.go) */
.rank-board { min-width: 0; }
.rank-head { padding: 4px 8px 6px; }
.rank-title { font-size: 26px; font-weight: 800; }
.rank-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px; }
.rank-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: #fffaf0; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.rank-chip:hover { background: var(--cream); }
.rank-chip[aria-current="true"] { background: var(--sage); border-color: var(--sage); color: var(--cream); }
.rank-me { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 8px 4px; padding: 10px 14px; background: var(--cream); }
.rank-me img { width: 30px; height: 30px; }
.rank-me .strong { font-weight: 800; font-size: 18px; }
.rank-pref { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 8px; }
.rank-list { list-style: none; margin: 10px 0 0; padding: 0 4px; display: flex; flex-direction: column; gap: 6px; }
.rank-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px; background: #fffaf0; border: 2px solid var(--line); border-radius: 12px; }
.rank-n { font-weight: 800; font-size: 18px; text-align: center; }
.rank-who { display: flex; flex-direction: column; min-width: 0; }
.rank-name { font-weight: 700; overflow-wrap: anywhere; }
.rank-name .muted { white-space: nowrap; }
.rank-board > p.small { margin: 4px 8px; }
.rank-v { font-weight: 800; text-align: right; white-space: nowrap; }
.rank-top .rank-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: var(--paper-deep); }
.rank-top-1 .rank-n { background: #f1d27a; }
.rank-top-2 .rank-n { background: #dcd6cc; }
.rank-top-3 .rank-n { background: #e2b48a; }
.rank-mine { border-color: var(--sage); background: #eef5e4; box-shadow: 0 0 0 2px #cfe0bd; }
.rank-board > p.rank-foot { margin: 12px 8px 4px; }
.htmx-request .rank-list { opacity: .55; transition: opacity .15s; }
@media (max-width: 640px) {
  .rank-title { font-size: 22px; }
  .rank-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; padding: 6px 8px; }
  .rank-chips { flex-wrap: nowrap; overflow-x: auto; }
  .rank-chip { flex: 0 0 auto; }
  .site-header .nav .nav-wide { display: none; }
}
/* Real-time live activity on /in-progress (agent_live.go, in_progress.js) */
.dev-live-strip { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; background: #f3f7ec; border-color: #a8c08f; }
.dev-live-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.dev-live-title { font-size: 15px; font-weight: 800; color: #26481d; flex: 1 1 auto; }
.dev-live-pill { padding: 1px 9px; border-radius: 999px; background: #2f6b3a; color: #fffaf0; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.dev-live-dot { flex: 0 0 auto; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #c59b45; }
.dev-live-dot.is-on { background: #3b8d47; box-shadow: 0 0 0 0 rgba(59,141,71,.55); animation: dev-live-pulse 1.8s ease-out infinite; }
@keyframes dev-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(59,141,71,.55); } 70% { box-shadow: 0 0 0 7px rgba(59,141,71,0); } 100% { box-shadow: 0 0 0 0 rgba(59,141,71,0); } }
@media (prefers-reduced-motion: reduce) { .dev-live-dot.is-on { animation: none; } }
.dev-live-feed { list-style: none; margin: 0; padding: 6px 0 0; border-top: 1px dashed #bcd0a6; display: flex; flex-direction: column; gap: 5px; }
.dev-live-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; line-height: 1.4; }
.dev-live-emoji { flex: 0 0 auto; }
.dev-live-name { font-weight: 800; color: var(--ink); }
.dev-live-stage { color: #2f5225; font-weight: 600; }
.dev-live-ago { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dev-item.is-live-active { border-color: #7ea86e; box-shadow: 0 0 0 2px rgba(126,168,110,.22); }
.dev-item-live { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 2px; padding: 3px 8px; border-radius: 8px; background: #eef4e6; border: 1px solid #c3d6b2; font-size: 12.5px; line-height: 1.35; }
.dev-item-live.is-idle { background: #f8f2e4; border-color: #dfd0af; }
.dev-item-stage { font-weight: 700; color: #2b4a22; }
.dev-item-live.is-idle .dev-item-stage { color: #6a5223; }
.dev-item-workers { padding: 0 6px; border-radius: 999px; background: #2f6b3a; color: #fffaf0; font-size: 11px; font-weight: 800; line-height: 18px; }
.dev-item-ago { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dev-item.is-pipe-focus { outline: 3px solid #d98a1f; outline-offset: 2px; transition: outline-color .2s; }
.dev-pipe-panel { padding: 0; margin-bottom: 14px; overflow: hidden; background: #f6ebd4; border: 2.5px solid #c6ac7d; border-radius: 16px; }
.dev-pipe-panel.is-admin { margin-bottom: 0; }
.dev-pipe-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 14px; background: linear-gradient(180deg, #fbf3e2 0%, #ede0c4 100%); border-bottom: 2px solid #d2ba8f; }
.dev-pipe-head { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 150px; }
.dev-pipe-status { font-size: 14.5px; font-weight: 800; color: #3a2b1b; }
.dev-pipe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.dev-pipe-hint { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.dev-pipe-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 2px solid #964c1c; background: linear-gradient(180deg, #e09145 0%, #b86228 100%); color: #fffaf0; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 0 #733812; }
.dev-pipe-btn:hover { filter: brightness(1.05); }
.dev-pipe-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #733812; }
.dev-pipe-btn:disabled { opacity: .55; cursor: default; transform: none; }
.dev-pipe-btn.is-tent { border-color: #3f6333; background: linear-gradient(180deg, #6e9455 0%, #446c37 100%); box-shadow: 0 2px 0 #2b4722; }
.dev-pipe-canvas-wrap { position: relative; width: 100%; background: #26304f; line-height: 0; }
.dev-pipe-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1344 / 440; touch-action: manipulation; }
.dev-pipe-canvas.is-pointer { cursor: pointer; }
.dev-pipe-zones { display: none; gap: 6px; padding: 8px 10px; background: #ede0c4; border-top: 2px solid #d2ba8f; }
.dev-pipe-zone { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 6px; border-radius: 10px; border: 2px solid #c3a97b; background: #fffaf0; color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.dev-pipe-zone.is-on { background: #3f6b34; border-color: #2c4e24; color: #fffaf0; }
@media (max-width: 760px) {
  .dev-pipe-hint { display: none; }
  .dev-pipe-btn { min-height: 48px; min-width: 48px; padding: 0 14px; }
  .dev-pipe-canvas { aspect-ratio: 680 / 440; }
  .dev-pipe-zones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dev-live-strip[hidden], .dev-live-feed[hidden], .dev-item-live[hidden], .dev-pipe-panel[hidden], .dev-pipe-btn[hidden] { display: none; }
