:root {
  color-scheme: light;
  --pine: #10382e;
  --deep: #0c2c24;
  --ink: #15332a;
  --paper: #faf8f0;
  --light: #fffdf6;
  --gold: #f2d993;
  --biscuit: #fff1cb;
  --soft: #52645a;
  --line: #dce1d5;
  --serif: Georgia, "Noto Serif CJK SC", "Songti SC", "Yu Mincho", serif;
  --sans: "Segoe UI", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: .18rem solid #b04832;
  outline-offset: .24rem;
}
.site-header a:focus-visible, .hero a:focus-visible { outline-color: var(--gold); }
img { display: block; max-width: 100%; }
.shell { width: min(100% - 6rem, 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 1rem; top: .6rem; transform: translateY(-150%); background: var(--light); color: var(--ink); padding: .6rem .85rem; }
.skip:focus { transform: none; }
.site-header { background: var(--deep); color: var(--light); border-bottom: 1px solid #ffffff22; }
.header-row, .footer-row { min-height: 4.35rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 680; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; border-radius: 9px; }
.languages { display: flex; align-items: center; justify-content: flex-end; gap: .25rem .35rem; flex-wrap: wrap; }
.languages > svg { margin-inline-end: .25rem; color: #ceded2; flex: none; }
.languages a {
  padding: .3rem .64rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  color: #edf4ec;
  border: 1px solid transparent;
  border-radius: .4rem;
  text-decoration: none;
  font-size: .875rem;
  white-space: nowrap;
}
.languages a:hover { background: #ffffff18; }
.languages a[aria-current] { border-color: #e9dcab75; background: #f2d9931c; color: #fff1cb; }

body:not(.legal-page) .site-header {
  background: #2a090f;
  border-bottom-color: #d19d6866;
}
.hero {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 48% 68%, #63171d, transparent 76%), #3b0a12;
  color: var(--light);
  overflow: hidden;
  border-bottom: 2px solid #b5894d;
}
.hero-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #350912 5%, #3c0a13d4 26%, transparent 61%);
  pointer-events: none;
}
.hero-grid { min-height: 34rem; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; }
.hero-copy { position: relative; z-index: 1; padding-block: 3.3rem 3.8rem; }
.season {
  margin: 0 0 1.45rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--gold);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.season span { font-size: 1.1rem; }
.hero h1 {
  margin: 0;
  font: 500 clamp(2.8rem, 5.15vw, 5.3rem)/.99 var(--serif);
  letter-spacing: -.065em;
  text-wrap: balance;
}
.hero h1 em { display: block; color: var(--gold); font-weight: inherit; margin-block-start: .12em; }
html:not([lang="en"]) .hero h1 { font: 700 clamp(2.1rem, 3.55vw, 3.8rem)/1.17 var(--sans); letter-spacing: -.047em; }
html:not([lang="en"]) .hero h1 em { font-style: normal; }
.hero-description { max-width: 26rem; margin: 1.55rem 0 1.85rem; font-size: 1.145rem; line-height: 1.6; color: #f7e6d9; }
.button {
  min-height: 2.9rem;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: .56rem;
  padding: .6rem 1rem;
  border: 1px solid #aabdb0;
  border-radius: .48rem;
  text-decoration: none;
  color: var(--pine);
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.2;
}
.button:hover { background: #edf2e9; border-color: #668c77; }
.button.primary {
  padding: .77rem 1.13rem;
  min-height: 3.18rem;
  background: #f2d993;
  border-color: #f2d993;
  color: #16352b;
}
.button.primary:hover { background: #ffe8aa; }

.hero-art { position: relative; isolation: isolate; min-width: 0; width: min(100% + 1rem, 38rem); aspect-ratio: 1.18; }
.winter { position: absolute; inset: 0; }
.mascot {
  position: absolute;
  object-fit: contain;
  height: auto;
  filter: drop-shadow(0 .65rem .5rem #37140b9d);
}
.mascot-blue { width: 39%; left: 26%; bottom: 4%; rotate: -7deg; }
.mascot-coral { width: 37%; right: 4%; bottom: 3%; rotate: 6deg; }
.word-card {
  position: absolute;
  right: 38%; top: 23%;
  display: flex; align-items: center; gap: .6rem;
  padding: .52rem .85rem .55rem .52rem;
  background: var(--light);
  color: var(--ink);
  border: 1px solid #e0e7da;
  border-radius: .67rem;
  box-shadow: 0 .65rem 2rem #26060880;
  font-size: .94rem;
  line-height: 1.32;
}
.word-icon {
  min-width: 2.15rem; min-height: 2.15rem;
  display: grid; place-items: center;
  background: #e7eee4; border-radius: .4rem;
  font: 700 .94rem/1 var(--serif);
}
.word-card strong, .word-card div span { display: block; }
.word-card div span { color: #53665c; font-size: .84rem; }

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.hero .button.secondary {
  min-height: 3.18rem;
  padding: .68rem 1rem;
  color: #fff7e8;
  background: #2c0b1155;
  border-color: #eac3949c;
}
.hero .button.secondary:hover { color: #fff; background: #9c404044; border-color: #f2d993; }

.release-section {
  background: #fff8ed;
  border-bottom: 1px solid #eadacc;
  scroll-margin-top: 1rem;
}
.release-inner { padding-block: 2.85rem 2.6rem; }
.release-inner h2 {
  color: #60212a;
  font: 500 clamp(2.2rem, 4vw, 3.4rem)/1.05 var(--serif);
  letter-spacing: -.04em;
  margin: 0 0 1.25rem;
}
html:not([lang="en"]) .release-inner h2 { font: 700 clamp(1.65rem, 3.5vw, 2.55rem)/1.2 var(--sans); }
.release-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .9rem; }
.release-card { border: 1px solid #e1d6c8; background: #fffdfa; border-radius: .7rem; overflow: hidden; }
.release-card-copy { padding: 1.05rem 1.15rem 1.2rem; }
.release-card h3 { font-size: 1.2rem; line-height: 1.28; margin: 0 0 .42rem; }
.release-card p { color: #43584e; margin: 0; }
.release-image { height: 9rem; display: flex; justify-content: center; align-items: center; overflow: hidden; border-bottom: 1px solid #e1d6c8; }
.japanese-art { background: #f4e2df; }
.android-art { background: #dce8dc; }
.release-image img {
  display: block;
  width: 87%;
  height: auto;
  border: .22rem solid #393337;
  border-radius: .6rem;
  box-shadow: 0 .45rem .9rem #38262820;
}
.duo-art { gap: 7%; background: #eee6d5; }
.duo-cover, .duo-open {
  background: #fffdfa;
  box-shadow: 0 .45rem .9rem #38262820;
  border: .22rem solid #393337;
  border-radius: .65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: .42rem .32rem .32rem;
}
.duo-cover { width: 17%; height: 74%; }
.duo-open { width: 53%; height: 74%; border-radius: .64rem; }
.device-copy {
  height: 1.17rem;
  width: 84%;
  margin-block-start: .25rem;
  margin-inline: .13rem auto;
  background: linear-gradient(#c4aa9f,#c4aa9f) 0 0/60% 2px no-repeat,
              linear-gradient(#d8c6b7,#d8c6b7) 0 .4rem/84% 2px no-repeat,
              linear-gradient(#d8c6b7,#d8c6b7) 0 .8rem/70% 2px no-repeat;
}
.device-keyboard { display: grid; grid-template-columns: 1fr .78fr 1fr; gap: .17rem; }
.device-keys, .device-candidates { height: 2.3rem; border-radius: .22rem; }
.device-keys {
  background: repeating-linear-gradient(to bottom,#fdf8ed00 0 .36rem,#fffdfa .36rem .43rem),
              repeating-linear-gradient(90deg,#e1ceba 0 23%,#fffdfa 23% 28%);
}
.device-candidates { background: repeating-linear-gradient(to bottom,#dbb7b3 0 .32rem,#fffdfa .32rem .43rem); }

.download { padding-block: 3.25rem 2.65rem; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; margin-bottom: 1.25rem; }
.section-title h2 { margin: 0; font: 500 clamp(2.2rem, 4vw, 3.4rem)/1.06 var(--serif); letter-spacing: -.048em; }
html:not([lang="en"]) .section-title h2 { font: 700 clamp(1.65rem, 3.5vw, 2.55rem)/1.2 var(--sans); }
.section-title p { margin: 0; color: var(--soft); font-size: .94rem; }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .9rem; }
.channel {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 1.35rem 1.3rem;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: .78rem;
}
.channel.direct { background: #eaf0e4; border-color: #b5cbb8; }
.channel-icon { display: grid; place-items: center; width: 2.52rem; height: 2.52rem; background: #eef1e8; border: 1px solid #dbe4d7; border-radius: .52rem; }
.channel.direct .channel-icon { background: #d7e7d7; border-color: #c1d7c5; }
.channel h3 { margin: .86rem 0 .25rem; font-size: 1.22rem; line-height: 1.2; }
.channel p { color: var(--soft); margin: 0 0 1.1rem; }
.channel .button { margin-top: auto; }
.direct .button { color: #fffef6; background: var(--pine); border-color: var(--pine); }
.direct .button:hover { background: #245d49; }
.checksum { margin-top: 1.05rem; color: var(--soft); }
.checksum summary { cursor: pointer; width: fit-content; padding-block: .3rem; }
.checksum p { margin: .4rem 0 .15rem; }
.checksum code { color: var(--ink); overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); color: var(--soft); font-size: .92rem; }
.footer-row { flex-wrap: wrap; padding-block: .85rem; }
.footer-row nav { display: flex; gap: .55rem 1.4rem; flex-wrap: wrap; }
.footer-row a, .legal-nav a { text-underline-offset: .2em; }

.legal-shell { width: min(100% - 3rem, 51rem); margin-inline: auto; padding-block: 2.25rem 4rem; }
.legal-nav { display: flex; gap: .7rem 1.4rem; flex-wrap: wrap; margin-bottom: 1.5rem; font-size: .95rem; }
.legal-document {
  background: var(--light);
  padding: clamp(1.15rem,4vw,3rem);
  border: 1px solid var(--line);
  border-radius: .78rem;
  overflow-wrap: anywhere;
  line-height: 1.72;
}
.legal-document h1 { margin: 0 0 1.2rem; font-size: clamp(1.7rem,4vw,2.6rem); line-height: 1.17; }
.legal-document h2 { margin: 2.1rem 0 .65rem; font-size: 1.35rem; line-height: 1.26; }
.legal-document h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.legal-document hr { border: 0; border-bottom: 1px solid var(--line); margin-block: 1.3rem; }
.legal-document ul, .legal-document ol { padding-inline-start: 1.35rem; }
.table-scroll { overflow-x: auto; }
.legal-document table { width: 100%; min-width: 32rem; border-collapse: collapse; }
.legal-document th, .legal-document td { padding: .5rem .68rem; border: 1px solid var(--line); text-align: start; vertical-align: top; }
.legal-document th { background: #eaf0e4; }

@media (max-width: 940px) {
  .shell { width: min(100% - 3rem, 72rem); }
  .hero-grid { min-height: 28.75rem; }
  .hero h1 { font-size: clamp(2.8rem, 6.15vw, 4.05rem); }
  .hero-copy { padding-block: 2.65rem; }
  .hero-art { width: 100%; }
  .word-card { right: 29%; top: 14%; }

}
@media (max-width: 680px) {
  .shell { width: calc(100% - 2rem); }
  .header-row { padding-block: .7rem .6rem; flex-wrap: wrap; gap: .55rem; }
  .languages { justify-content: flex-start; gap: .16rem; }
  .languages a { padding-inline: .45rem; }
  .languages > svg { margin-inline-end: .1rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.1rem 0 .9rem; }
  .hero-backdrop {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    mask-image: linear-gradient(180deg,transparent 0%,#000 22%);
  }
  .hero::after { content: none; }
  .hero-actions { gap: .48rem; }
  .hero-actions .button { min-height: 2.8rem; font-size: .89rem; padding-inline: .68rem; }
  .season { margin-bottom: 1.05rem; }
  .hero h1 { font-size: clamp(2.7rem, 10.7vw, 4.3rem); }
  html:not([lang="en"]) .hero h1 { font-size: clamp(2rem, 7.4vw, 3rem); }
  .hero-description { font-size: 1.06rem; margin: 1.05rem 0 1.3rem; }
  .hero-art { width: min(100%, 31rem); aspect-ratio: 1.39; margin: 0 auto; }
  .word-card { top: 13%; left: 1%; right: auto; font-size: .85rem; transform: scale(.82); transform-origin: top right; }
  .mascot-blue { width: 44%; left: 10%; bottom: 5%; }
  .mascot-coral { width: 41%; right: 7%; bottom: 4%; }
  .release-inner { padding-block: 1.85rem; }
  .release-cards { grid-template-columns: 1fr; gap: .7rem; }
  .release-image img { width: min(86%, 23rem); }
  .word-card div span { font-size: .8rem; }
  .download { padding-block: 2.1rem 1.7rem; }
  .section-title { flex-direction: column; }
  .channels { grid-template-columns: 1fr; gap: .7rem; }
  .channel { padding: 1.05rem; }
  .footer-row { align-items: flex-start; gap: .6rem; flex-direction: column; }
  .legal-shell { width: calc(100% - 2rem); }
}
