/* Site of the cozy anime farm: warm paper, honey, leaf green, sakura accents. Mobile first. */
:root {
  --bg: #fff8ec;
  --paper: #fffdf7;
  --paper-2: #fdf1dc;
  --ink: #4a3426;
  --ink-2: #7a604c;
  --line: #ecd9bb;
  --leaf: #5e9a3a;
  --leaf-d: #467a29;
  --honey: #f2b33d;
  --honey-l: #ffe3a3;
  --clay: #d9734a;
  --sky: #8cc7e8;
  --sakura: #f4b6c2;
  --sakura-l: #fde7ea;
  --shadow: 0 6px 20px rgba(122, 82, 40, .12);
  --r: 18px;
  --display: 'Pacifico', 'Segoe Script', cursive;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--leaf-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font: 400 clamp(34px, 6vw, 58px)/1.15 var(--display); color: var(--ink); }
h2 { font: 400 clamp(26px, 4vw, 36px)/1.2 var(--display); }
h3 { font-weight: 800; font-size: 19px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 236, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 400 22px var(--display); white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--honey); background: var(--honey-l); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--paper-2); }
.nav a.on { background: var(--honey-l); }
.nav a.cta { background: var(--leaf); color: #fff; }
.nav a.cta:hover { background: var(--leaf-d); }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; gap: 4px; padding-top: 6px; }
  .nav { width: 100%; margin: 0 -16px; padding: 0 12px 8px; }
  .brand { font-size: 19px; }
  .brand img { width: 32px; height: 32px; }
}

/* buttons, chips */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer;
  background: var(--leaf); color: #fff; box-shadow: 0 4px 0 var(--leaf-d); transition: transform .1s; font-size: 16px; font-family: inherit; }
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn.alt { background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 var(--line); border: 1px solid var(--line); }
.btn.alt:hover { color: var(--ink); }
.btn.off { background: #e9dfcf; color: var(--ink-2); box-shadow: 0 4px 0 #d9ccb6; cursor: default; }
.btn small { display: block; font-weight: 600; font-size: 12px; opacity: .85; line-height: 1.1; }
.btn .t { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn svg { width: 26px; height: 26px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.chip.season-spring { background: var(--sakura-l); border-color: var(--sakura); }
.chip.season-summer { background: #fff3c4; border-color: var(--honey); }
.chip.season-autumn { background: #fde3d2; border-color: #eaa77f; }
.chip.season-winter { background: #e7f3fb; border-color: var(--sky); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 10%, #ffe7b8 0, transparent 60%), linear-gradient(180deg, #fff3dc, var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hero .stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.hero .art { position: relative; }
.hero .art .frame { border-radius: 28px; overflow: hidden; box-shadow: 0 18px 50px rgba(122, 82, 40, .28); border: 6px solid #fff; transform: rotate(1.5deg); background: #f5d9a8; aspect-ratio: 4 / 5; }
.hero .art .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero .art .sticker { position: absolute; left: -18px; bottom: 26px; background: var(--paper); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-weight: 800; display: flex; gap: 10px; align-items: center; transform: rotate(-3deg); }
.hero .art .sticker img { width: 44px; height: 44px; }
.petals { pointer-events: none; position: absolute; inset: 0; overflow: hidden; }
.petals i { position: absolute; top: -40px; width: 22px; height: 22px; background: var(--petal) center/contain no-repeat; animation: fall linear infinite; opacity: .85; }
@keyframes fall { to { transform: translate(-120px, 720px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .petals { display: none; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 24px; gap: 24px; }
  .hero .art { max-width: 420px; margin: 0 auto; width: 100%; }
  .hero .art .frame { aspect-ratio: 5 / 4; }
  .hero .art .sticker { left: 6px; }
}

/* sections */
.sec { padding: 56px 0; }
.sec.alt { background: var(--paper-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head p { margin: 0; color: var(--ink-2); max-width: 40em; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-2); }

.feature { display: flex; flex-direction: column; gap: 10px; }
.feature .pic { height: 120px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; background: linear-gradient(180deg, #fff6e2, #f8e6c6); border-radius: 14px; overflow: hidden; }
.feature .pic img { max-height: 104px; max-width: 24%; object-fit: contain; }
.feature .pic.photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }

/* diorama */
.diorama { position: relative; background: radial-gradient(circle at 50% 40%, #fff4dc, #f3e2c2); border-radius: 26px; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
canvas.farmview { display: block; width: 100%; height: 320px; opacity: 0; transition: opacity .4s; }
canvas.farmview.ready { opacity: 1; }
.diorama .badge { position: absolute; left: 14px; top: 14px; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li img { position: absolute; left: 0; top: -2px; width: 26px; height: 26px; }

/* screens strip */
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-width: thin; }
.strip figure { margin: 0; flex: 0 0 auto; width: min(78vw, 380px); scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.strip figure.tall { width: min(60vw, 240px); }
.strip figure canvas.farmview { height: 240px; background: radial-gradient(circle at 50% 45%, #fff4dc, #f0dcb8); }
.strip figure img { display: block; width: 100%; height: 240px; object-fit: cover; }
.strip figcaption { padding: 10px 14px; font-weight: 700; font-size: 15px; }
.strip figcaption span { display: block; font-weight: 600; font-size: 13px; color: var(--ink-2); }

/* boards */
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board li { display: grid; grid-template-columns: 36px 46px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.board .rk { font-weight: 900; font-size: 18px; text-align: center; color: var(--ink-2); }
.board li:nth-child(1) .rk { color: #c99412; }
.board li:nth-child(2) .rk { color: #8d9aa6; }
.board li:nth-child(3) .rk { color: #b9773e; }
.board .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .nm a { color: var(--ink); text-decoration: none; }
.board .nm a:hover { color: var(--clay); }
.board .nm small { display: block; font-weight: 600; color: var(--ink-2); }
.board .sc { font-weight: 900; text-align: right; white-space: nowrap; }
.board .sc small { display: block; font-weight: 600; color: var(--ink-2); font-size: 12px; }
.empty { padding: 22px; text-align: center; color: var(--ink-2); background: var(--paper); border: 1px dashed var(--line); border-radius: 16px; }
.stars { color: #e2a21a; letter-spacing: 1px; white-space: nowrap; }
.prizes { display: grid; gap: 10px; }
.prizes div { display: flex; gap: 12px; align-items: center; }
.prizes img { width: 44px; height: 44px; object-fit: contain; }

/* avatar */
.ava { width: 46px; height: 46px; border-radius: 50%; background: var(--paper-2); display: block; }
.ava.big { width: 120px; height: 120px; }

/* news */
.ncard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; padding: 0; }
.ncard .im { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #ffe6b5, #fbd5c4); display: flex; align-items: center; justify-content: center; }
.ncard .im img { width: 100%; height: 100%; object-fit: cover; }
.ncard .im img.ph { width: 40%; height: auto; object-fit: contain; }
.ncard .tx { padding: 14px 16px 18px; display: grid; gap: 6px; }
.ncard h3 { margin: 0; }
.ncard:hover h3 { color: var(--clay); }
.post { max-width: 760px; margin: 0 auto; }
.post .cover { border-radius: 20px; overflow: hidden; margin: 18px 0; box-shadow: var(--shadow); }
.post .cover img { display: block; width: 100%; }
.post .body { font-size: 18px; }
.post .body h2 { font: 800 24px var(--body); margin-top: 1.2em; }
.post .body figure { margin: 18px 0; }
.post .body figure img { border-radius: 14px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.pager a, .pager b { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; }
.pager b { background: var(--honey-l); }

/* page head + encyclopedia */
.phead { padding: 34px 0 20px; background: linear-gradient(180deg, #fff1d6, var(--bg)); }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.crumbs a { color: var(--ink-2); }
.enc { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding-bottom: 60px; }
.enc-nav { position: sticky; top: 76px; align-self: start; display: grid; gap: 4px; }
.enc-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.enc-nav a img { width: 28px; height: 28px; }
.enc-nav a:hover { background: var(--paper-2); }
.enc-nav a.on { background: var(--honey-l); }
@media (max-width: 860px) {
  .enc { grid-template-columns: 1fr; }
  .enc-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; margin: 0 -16px; padding: 0 16px; }
  .enc-nav a { flex: none; background: var(--paper); border: 1px solid var(--line); padding: 6px 12px; }
  .enc-nav a img { width: 22px; height: 22px; }
}
.ecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ecard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; box-shadow: var(--shadow); }
.ecard .sp { width: 76px; height: 86px; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(180deg, #fff8e8, #f6e7c9); border-radius: 12px; }
.ecard .sp img { max-width: 70px; max-height: 80px; object-fit: contain; }
.ecard h3 { font-size: 17px; margin: 0 0 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ecard dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 14px; }
.ecard dt { color: var(--ink-2); }
.ecard dd { margin: 0; font-weight: 700; }
.ecard.wide { grid-template-columns: 110px 1fr; }
.ecard.wide .sp { width: 110px; height: 120px; }
.ecard.wide .sp img { max-width: 104px; max-height: 114px; }
.lvl { font-size: 12px; font-weight: 800; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--ink-2); }
.sea { display: inline-flex; gap: 2px; }
.sea i { font-style: normal; font-size: 14px; opacity: .25; }
.sea i.on { opacity: 1; }
.recipes { display: grid; gap: 10px; }
.recipe { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.recipe > img { width: 48px; height: 48px; }
.recipe .in { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.recipe .in span { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; background: var(--paper-2); border-radius: 999px; padding: 1px 8px 1px 3px; }
.recipe .in img { width: 22px; height: 22px; }
.recipe .nums { text-align: right; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.recipe .nums b { color: var(--ink); font-size: 15px; }
.bld { display: grid; grid-template-columns: 150px 1fr; gap: 20px; margin-bottom: 30px; }
.bld .sp { background: linear-gradient(180deg, #fff8e8, #f6e7c9); border-radius: 18px; display: flex; align-items: flex-end; justify-content: center; padding: 8px; min-height: 150px; }
@media (max-width: 560px) { .bld { grid-template-columns: 1fr; } .bld .sp { min-height: 120px; } .bld .sp img { max-height: 120px; } }
table.t { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); font-size: 15px; }
table.t th, table.t td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t th { background: var(--paper-2); font-size: 13px; color: var(--ink-2); }
table.t tr:last-child td { border-bottom: 0; }
.tscroll { overflow-x: auto; }

/* seasons */
.now-box { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .now-box { grid-template-columns: 1fr; } }
.big-emoji { font-size: 46px; line-height: 1; }
.forecast { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 560px) { .forecast { grid-template-columns: repeat(4, 1fr); } }
.forecast div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; text-align: center; font-size: 13px; }
.forecast div b { display: block; font-size: 24px; }
.forecast div.now { background: var(--honey-l); }
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 760px) { .weeks { grid-template-columns: repeat(2, 1fr); } }
.weeks div { border-radius: 14px; padding: 12px; border: 1px solid var(--line); background: var(--paper); }
.weeks div.cur { outline: 3px solid var(--honey); }
.weeks .w-spring { background: var(--sakura-l); }
.weeks .w-summer { background: #fff3c4; }
.weeks .w-autumn { background: #fde3d2; }
.weeks .w-winter { background: #e7f3fb; }
.icons-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.icons-row img { width: 30px; height: 30px; }

/* farm profile */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; padding-bottom: 60px; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } }
.profile .who { text-align: center; }
.rep { font-size: 42px; font-weight: 900; color: var(--leaf-d); line-height: 1; }
.meter { height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--honey), var(--leaf)); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stats div { background: var(--paper-2); border-radius: 12px; padding: 8px; }
.stats b { display: block; font-size: 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.badges figure { margin: 0; width: 76px; font-size: 12px; text-align: center; }
.badges img { width: 56px; height: 56px; object-fit: contain; }
.rates { display: grid; gap: 10px; }
.rate { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.rate .st { display: inline-block; background: var(--sakura-l); border-radius: 999px; padding: 0 10px; font-size: 13px; font-weight: 700; margin-left: 6px; }

/* docs */
.doc { max-width: 820px; margin: 0 auto; padding-bottom: 60px; }
.doc h2 { font: 800 22px var(--body); margin-top: 1.4em; }
.doc table { border-collapse: collapse; width: 100%; background: var(--paper); }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

/* download + footer */
.download { text-align: center; background: linear-gradient(180deg, var(--paper-2), #fbe0c6); }
.download .stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.foot { background: #4a3426; color: #f6e7d2; padding: 36px 0 28px; font-size: 14px; }
.foot a { color: #ffe3a3; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
.foot b { font: 400 20px var(--display); color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 520px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie .btn { padding: 8px 14px; font-size: 14px; }
.feature .pic.photo img { max-width: none; }
.hero .wrap { position: relative; z-index: 1; }
.strip { align-items: flex-start; }
.sea i { filter: grayscale(1); opacity: .3; } .sea i.on { filter: none; opacity: 1; }
.profile .who .ava { margin: 0 auto; }
@media (max-width: 760px) { .petals i { opacity: .4; } .nav a { padding: 6px 9px; font-size: 14px; } }
.cta-m { display: none; } @media (max-width: 760px) { .top .cta-m { display: inline-flex; margin-left: auto; padding: 6px 14px; font-size: 14px; box-shadow: 0 3px 0 var(--leaf-d); } .nav a.cta { display: none; } }
