:root {
  color-scheme: light;
  --ink: #202024;
  --night: #19191c;
  --white: #fffaf0;
  --paper: #f3eddf;
  --red: #fa655e;
  --grey: #aaa5a5;
  --line: #474549;
  --measure: 1120px;
  font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--white);
  background: var(--night);
  font-synthesis: weight;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}
button,
a,
input,
textarea,
select {
  font: inherit;
}
a,
button {
  color: inherit;
}
a {
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #568df9;
  outline-offset: 3px;
}
.icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex: none;
}
.mast {
  border-bottom: 1px solid var(--line);
}
.mast > div,
.foot,
main {
  width: min(calc(100% - 64px), var(--measure));
  margin: auto;
}
.mast > div {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 35px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  line-height: 1.05;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.045em;
}
.brand-lockup i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 39px;
  border-radius: 6px;
  background: var(--red);
  color: var(--ink);
  transform: rotate(-5deg);
}
.brand-lockup i svg {
  width: 27px;
  height: 27px;
}
.brand-lockup small {
  display: block;
  font:
    700 9px/1.4 'Arial Narrow',
    Arial,
    sans-serif;
  letter-spacing: 0.22em;
  margin-top: 4px;
}
.mast nav {
  display: flex;
  gap: 25px;
}
.mast nav a,
.nav-cta,
.cta,
.outline,
.sort,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mast nav a {
  color: #c3bdbe;
  font-size: 14px;
  font-weight: 650;
}
.mast nav [aria-current] {
  color: var(--white);
}
.mast nav [aria-current] .icon {
  color: var(--red);
}
.nav-cta {
  padding: 8px 14px;
  border: 1px solid #ccc5bc;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
}
.nav-cta:hover {
  background: var(--white);
  color: var(--ink);
}
main {
  padding: 30px 0 56px;
  min-height: 70vh;
}
.cover {
  display: grid;
  grid-template-columns: 44% 56%;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  border-radius: 4px;
}
.cover-copy {
  position: relative;
  padding: 36px 30px 39px 42px;
  background-image: radial-gradient(#a9a09854 0.65px, transparent 0.8px);
  background-size: 5px 5px;
}
.issue,
.smallcap,
.case-body > small,
.sort,
.heat small,
.break-image span {
  font:
    700 11px/1.45 'IBM Plex Mono',
    'PingFang SC',
    monospace;
  letter-spacing: 0.1em;
}
.issue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.issue b {
  width: 8px;
  height: 8px;
  background: #b92f31;
  transform: rotate(45deg);
}
.cover h1 {
  font-size: clamp(65px, 7.5vw, 99px);
  line-height: 0.99;
  letter-spacing: -0.105em;
  font-weight: 1000;
  transform: skew(-5deg);
  transform-origin: left;
  margin: 23px 0 20px;
}
.cover h1 span {
  color: #c23837;
  font-size: 0.73em;
}
.cover-copy p {
  font-size: clamp(13px, 1.35vw, 17px);
  font-weight: 650;
  margin-bottom: 24px;
}
.cover figure,
.break-image {
  position: relative;
  overflow: hidden;
  background: #312c2a;
}
.cover figure {
  border-left: 5px solid var(--ink);
}
.cover img,
.break-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.cover img {
  object-position: 62% 45%;
}
.cover figcaption,
.break-image span {
  position: absolute;
  right: 5%;
  bottom: 8%;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-weight: 900;
  transform: rotate(-4deg);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 6px 14px;
  font-size: clamp(16px, 1.9vw, 25px);
  letter-spacing: 0;
}
.cta,
.outline {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 750;
  font-size: 15px;
  line-height: 1.4;
}
.cta {
  border: 2px solid var(--ink);
  background: var(--red);
  color: #1d1716;
  box-shadow: 3px 3px 0 var(--ink);
}
.cta:hover {
  background: #ff7c74;
}
.cta:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.outline {
  border: 1px solid currentColor;
  background: transparent;
}
.outline:hover,
.text-link:hover {
  opacity: 0.78;
}
.text-link {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent;
  border: 0;
  padding: 6px 0;
  font-weight: 650;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.heading h1,
.narrow > h1,
.break-copy h1 {
  font-size: clamp(31px, 4.2vw, 55px);
  line-height: 1.2;
  letter-spacing: -0.06em;
  margin: 5px 0 0;
}
.heading h2,
.detail h2,
.stack h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.05em;
  line-height: 1.2;
}
.smallcap {
  display: block;
  margin-bottom: 8px;
  color: var(--grey);
  font-size: 11px;
}
.feed {
  margin-top: 38px;
}
.feed .smallcap,
.tool > .heading .smallcap,
.narrow > .smallcap {
  color: #ff918a;
}
.sort {
  color: #ffd7d0;
  border: 1px solid #785450;
  border-radius: 20px;
  padding: 5px 11px;
  letter-spacing: 0.02em;
}
.sort .icon {
  width: 15px;
  height: 15px;
}
.sub,
.hint,
.result p {
  font-size: 13px;
  color: #b9b4b4;
  margin: 9px 0 17px;
}
#feed-list {
  border-top: 2px solid #ddd5c9;
}
.case {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px 10px;
  border-bottom: 1px solid var(--line);
}
.case:hover {
  background: #252426;
}
.heat {
  border: 1px solid #5d5050;
  border-radius: 4px;
  text-align: center;
  padding: 6px 4px;
  color: #ffaca5;
}
.heat b,
.heat small {
  display: block;
}
.heat b,
.counts b,
.big-num {
  font-family: 'Arial Narrow', 'Helvetica Neue', sans-serif;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.heat b {
  font-size: 24px;
}
.heat small {
  font-size: 10px;
}
.case-body {
  min-width: 0;
}
.case-body small {
  color: #f4b1a8;
  letter-spacing: 0.04em;
}
.case-body small span {
  color: var(--grey);
}
.case-body h3 {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.35;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.case-body p {
  font-size: 14px;
  color: #c0b9b6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-arrow {
  border: 1px solid #635f61;
  border-radius: 50%;
  padding: 6px;
  display: flex;
}
.pager {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.pager button,
.foot button {
  color: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
}
.foot {
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  color: #b3aaaa;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.foot a {
  text-decoration: underline;
}
.break {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 385px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  overflow: hidden;
}
.break-copy {
  padding: clamp(25px, 4vw, 50px);
  align-self: center;
}
.break-copy h1 {
  font-size: clamp(30px, 3.5vw, 47px);
  margin: 12px 0 24px;
}
.break-copy p {
  margin-bottom: 10px;
}
.break-copy .smallcap,
.paper .smallcap {
  color: #6b5553;
}
.break-image img {
  object-position: 64% center;
}
.break-image span {
  font-size: 18px;
  bottom: 18px;
  right: 15px;
  max-width: 90%;
}
.chips,
.actions,
.radios {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.chips {
  margin: 10px 0 25px;
}
.chip {
  border: 1px solid #978f88;
  border-radius: 18px;
  font-size: 13px;
  padding: 5px 10px;
}
.chip.on {
  background: var(--ink);
  color: var(--white);
}
.break-copy > .cta,
.break-copy > .text-link {
  margin: 6px 12px 0 0;
}
.tool,
.narrow {
  margin: 16px auto 0;
}
.tool-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}
.paper {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(20px, 3vw, 32px);
  border-radius: 5px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.wide {
  grid-column: 1/-1;
}
.paper label {
  font-size: 14px;
  font-weight: 650;
}
.paper input:not([type='radio']),
.paper select,
.paper textarea {
  display: block;
  width: 100%;
  border: 1px solid #a69e94;
  border-radius: 3px;
  background: #fffdf7;
  color: var(--ink);
  margin-top: 6px;
  padding: 10px;
  line-height: 1.4;
  font-weight: 500;
  min-width: 0;
  font-size: 16px;
}
.paper textarea {
  resize: vertical;
}
.paper .hint,
.result p {
  color: #635e57;
  margin: 0;
}
.result h2 {
  margin: 8px 0 16px;
  line-height: 1.2;
}
.big-num {
  font-size: clamp(34px, 4vw, 55px);
  letter-spacing: -0.045em;
}
.big-num small {
  font-size: 0.37em;
}
.result dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #cbc3b7;
}
.result dd {
  font-weight: 750;
  text-align: right;
}
.result p {
  margin: 14px 0;
}
.narrow {
  max-width: 760px;
}
.narrow > h1 {
  margin-bottom: 24px;
}
.stack {
  display: grid;
  gap: 18px;
}
.stack > .cta,
.stack > .text-link {
  justify-self: start;
}
.detail,
.narrow > .stack {
  margin: 14px 0;
}
.detail h1 {
  font-size: clamp(25px, 3.5vw, 41px);
  line-height: 1.25;
  margin: 10px 0;
}
.verbatim,
.ballots p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.verbatim {
  margin: 12px 0 20px;
}
.plan {
  border-left: 3px solid #cf5c52;
  background: #e5ddce;
  padding: 12px 14px;
  margin: 12px 0;
}
.plan p {
  font-size: 14px;
  margin: 5px 0;
}
.counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 15px 0;
  border-block: 1px solid #c0b8ab;
  padding: 13px 0;
}
.counts span,
.counts b {
  display: block;
}
.counts b {
  font-size: 32px;
}
.counts span {
  font-size: 13px;
}
.ballots {
  padding: 0;
  list-style: none;
}
.ballots li + li {
  border-top: 1px solid #c9c1b5;
  padding-top: 12px;
  margin-top: 12px;
}
.ballots small {
  margin-left: 12px;
  color: #635e57;
}
.ballots p {
  margin-top: 5px;
}
.radio {
  border: 1px solid #a39a90;
  padding: 8px;
  border-radius: 3px;
}
.radio:has(:checked) {
  background: #ffe3d8;
  border-color: #95372f;
}
.err {
  color: #a22d27;
}
.err:empty {
  display: none;
}
#notice {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff4db;
  color: #222;
  padding: 10px 20px;
  border: 2px solid #222;
  border-radius: 4px;
  z-index: 5;
  max-width: 90%;
  width: max-content;
}
#notice[hidden] {
  display: none;
}
@media (max-width: 740px) {
  .mast > div,
  main,
  .foot {
    width: min(calc(100% - 28px), var(--measure));
  }
  .mast > div {
    min-height: 60px;
    gap: 10px;
  }
  .brand-lockup {
    font-size: 17px;
    gap: 6px;
  }
  .brand-lockup i {
    width: 29px;
    height: 31px;
  }
  .brand-lockup small {
    font-size: 7px;
  }
  .mast nav {
    gap: 12px;
  }
  .mast nav a,
  .nav-cta {
    font-size: 12px;
    gap: 4px;
  }
  .mast nav .icon,
  .nav-cta .icon {
    display: none;
  }
  .nav-cta {
    padding: 6px 8px;
  }
  .cover {
    grid-template-columns: 1fr 1fr;
  }
  .cover-copy {
    padding: 24px 16px;
  }
  .cover h1 {
    font-size: clamp(49px, 9.3vw, 72px);
    margin: 16px 0;
  }
  .cover-copy p {
    font-size: 12px;
  }
  .cover-copy .cta {
    font-size: 13px;
    padding: 9px;
  }
  .cover figcaption {
    font-size: 15px;
    right: 6%;
    padding: 4px 8px;
  }
  .tool-grid,
  .break {
    grid-template-columns: 1fr;
  }
  .break-image {
    height: 230px;
  }
  .break-image img {
    object-position: 60% 38%;
  }
  .case {
    grid-template-columns: 43px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 17px 2px;
  }
  .tool {
    margin-top: 0;
  }
  .feed {
    margin-top: 27px;
  }
  main {
    padding: 18px 0 36px;
  }
}
@media (max-width: 480px) {
  .cover {
    grid-template-columns: 1fr;
  }
  .cover figure {
    grid-row: 1;
    height: clamp(150px, 44vw, 200px);
    border-left: 0;
    border-bottom: 4px solid var(--ink);
  }
  .cover img {
    object-position: 55% 37%;
  }
  .cover-copy {
    padding: 16px 20px 21px;
  }
  .cover h1 br {
    display: none;
  }
  .cover h1 {
    font-size: clamp(42px, 11vw, 55px);
    margin: 9px 0;
  }
  .cover-copy p {
    font-size: 14px;
    margin-bottom: 13px;
  }
  .issue {
    font-size: 10px;
  }
  .mast nav {
    gap: 8px;
  }
  .case-arrow {
    display: none;
  }
  .case {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .fields {
    gap: 14px 10px;
  }
  .paper label {
    font-size: 13px;
  }
  .stack {
    gap: 14px;
  }
  .sub {
    font-size: 12px;
  }
  .heading h1 {
    font-size: 31px;
  }
  .break-copy h1 {
    font-size: 29px;
  }
  .cover .cta {
    min-height: 42px;
  }
  .narrow,
  .tool {
    margin-top: 4px;
  }
}
.frozen .break-image img {
  filter: grayscale(1) contrast(1.14);
  transform: scale(1.18);
  transform-origin: 65% 33%;
}
.rested .break-image img {
  opacity: 0.8;
}
.rested .break-copy {
  background: #f3eddf;
}
.detail .proposal-plan {
  margin: 14px 0;
  padding: 12px;
  background: #e5ddce;
}
.plan-heading,
.attached-plan-grid {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.attached-plan-grid {
  margin-top: 9px;
}
.plan-item span,
.plan-item strong {
  display: block;
}
.plan-item span {
  font-size: 12px;
  color: #635e57;
}

#signin[hidden], #exit[hidden] { display: none; }
#feedback:not(:empty) { margin: 16px 0; }

.language-picker {
  max-width: 100%;
  border: 1px solid #787476;
  border-radius: 4px;
  padding: 6px;
  color: var(--white);
  background: var(--night);
  font-size: 14px;
}
html:lang(ja) { font-family: system-ui, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
html:lang(ko) { font-family: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
html:lang(en) .cover h1, html:lang(ko) .cover h1 { letter-spacing: -0.06em; }
html:lang(en) .brand-lockup small { display: none; }
.mast > div { flex-wrap: wrap; }
@media (max-width: 740px) {
  .mast > div { padding: 8px 0; }
  #desk .mast > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
  }
  #desk .mast nav { grid-area: 2 / 1; }
  #desk .mast .nav-cta { grid-area: 1 / 2; justify-self: end; }
  #desk .mast .language-picker { grid-area: 2 / 2; justify-self: end; }
  .mast nav { order: 1; width: 100%; gap: 18px; }
  .language-picker { padding: 5px 2px; font-size: 12px; }
  html:lang(en) .cover h1 { font-size: clamp(39px, 8vw, 62px); }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.wallet-button {
  padding: 6px 0;
  background: transparent;
  border: 0;
  color: var(--white);
  font-weight: 650;
  font-size: 14px;
}
.wallet-sheet {
  width: min(420px, calc(100% - 28px));
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
}
.wallet-sheet::backdrop { background: rgb(20 19 19 / 72%); }
.wallet-sheet .stack { margin-top: 18px; }
.wallet-sheet .outline { color: var(--ink); border-color: var(--ink); }
.wallet-sheet p { overflow-wrap: anywhere; }
@media (max-width: 740px) {
  #desk .mast .wallet-button { grid-area: 1 / 2; }
  #desk .mast .nav-cta { grid-area: 2 / 2; }
  #desk .mast .language-picker { grid-area: 1 / 3; }
  #desk .mast nav { grid-area: 2 / 1; width: auto; }
  #desk .mast > div { grid-template-columns: minmax(0, 1fr) auto auto; }
  .wallet-button { font-size: 12px; }
}
