:root {
  color-scheme: light;
  --ink:#193a31; --muted:#4f6b60; --paper:#f5f7ef; --white:#fffefa;
  --green:#204c3d; --lime:#dbf5a4; --edge:#dbe5d7; --gold:#ffe8a1;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color:var(--ink); background:var(--paper); line-height:1.55;
}
* { box-sizing:border-box; }
body { margin:0; }
a { color:inherit; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.72; }
:focus-visible { outline:3px solid #567e37; outline-offset:3px; }
.top,main,footer { width:min(1120px,calc(100% - 40px)); margin-inline:auto; }
.top { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--edge); }
.logo { display:flex; align-items:center; gap:11px; text-decoration:none; font-size:19px; font-weight:850; letter-spacing:.04em; }
.logo small { display:block; font-size:10px; letter-spacing:.16em; color:var(--muted); }
.mark { display:grid; place-items:center; width:42px; height:42px; color:var(--lime); background:var(--green); border-radius:14px; font-size:26px; }
.account { display:flex; align-items:center; gap:12px; font-size:14px; }
main { min-height:70vh; padding:28px 0 40px; }
footer { display:flex; justify-content:space-between; gap:10px; border-top:1px solid var(--edge); padding:18px 0; color:var(--muted); font-size:13px; }
.hero { position:relative; isolation:isolate; overflow:hidden; padding:clamp(28px,5vw,62px); border-radius:28px; background:var(--green); color:white; }
.hero h1 { max-width:18em; margin:.23em 0; font-size:clamp(31px,5vw,60px); line-height:1.18; letter-spacing:-.035em; }
.hero p { max-width:34em; color:#e3efdf; }
.hero .eyebrow { color:var(--lime); }
.heroArt { position:absolute; z-index:-1; right:-20px; bottom:-50px; width:360px; height:290px; transform:rotate(-12deg); color:#e6f8b4; font-size:180px; line-height:1; display:grid; place-items:center; border:1px solid #73927a; border-radius:50%; background:#2b5847; }
.heroArt::before { content:""; position:absolute; inset:-30px; border:1px solid #73927a; border-radius:50%; }
.heroArt::after { content:"✧"; position:absolute; right:73%; top:12%; font-size:48px; color:#fbdc89; }
.eyebrow { font-size:12px; letter-spacing:.13em; font-weight:800; text-transform:uppercase; }
.grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr); align-items:start; gap:20px; margin-top:20px; }
.welcome { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(330px,1fr); gap:20px; align-items:stretch; }
.welcome .hero { min-height:510px; }
.card { background:var(--white); border:1px solid var(--edge); border-radius:22px; padding:clamp(17px,3vw,28px); }
.stack { display:grid; gap:16px; }
.row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.between { justify-content:space-between; }
h2,h3,p { margin-top:0; }
h2 { margin-bottom:14px; font-size:24px; }
h3 { margin-bottom:6px; }
.muted { color:var(--muted); }
.pill { display:inline-flex; border-radius:99px; padding:5px 11px; background:#e9f1e5; color:#254a37; font-size:12px; font-weight:750; }
.pill.gold { background:var(--gold); color:#604500; }
button,.button { display:inline-block; text-decoration:none; border:1px solid transparent; border-radius:12px; padding:10px 15px; background:var(--green); color:white; font-weight:750; }
button:hover:not(:disabled) { filter:brightness(1.1); }
.secondary { background:#eef4e8; color:var(--green); border-color:var(--edge); }
.switch { display:flex; gap:6px; padding:5px; background:#eef4e8; border-radius:14px; }
.switch button { flex:1; background:transparent; color:var(--ink); }
.switch button[aria-pressed="true"] { background:var(--green); color:white; }
form { display:grid; gap:12px; }
label { display:grid; gap:5px; font-size:14px; font-weight:700; }
input,textarea,select { color:var(--ink); width:100%; min-width:0; background:#fff; border:1px solid #b9ccbc; padding:10px 12px; border-radius:11px; }
textarea { min-height:95px; resize:vertical; }
fieldset { min-width:0; margin:0; padding:14px; border:1px solid var(--edge); border-radius:14px; }
legend { padding-inline:6px; font-weight:800; }
.task,.rank { border:1px solid var(--edge); background:#fbfcf7; border-radius:15px; padding:13px; overflow-wrap:anywhere; }
.rank { display:grid; align-items:center; grid-template-columns:36px minmax(0,1fr) auto; gap:6px; padding:9px 12px; }
.rank.own { background:#e5f4c7; border-color:#b5d588; }
.rankList { display:grid; gap:7px; }
.feedback { margin-top:14px; padding:13px; background:#e8f4d6; border-radius:12px; }
.feedback.wrong { background:#ffefdc; }
.options { display:grid; gap:10px; }
.options button { text-align:left; min-height:50px; }
.options .picked { border-color:#527b45; background:#e5f4c7; }
.arena { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.fighter { background:#eaf3df; border-radius:17px; padding:15px; }
.fighter.enemy { background:#fff1d5; }
.fighter b { font-size:26px; }
progress { width:100%; height:16px; accent-color:#4e823c; }
.enemy progress { accent-color:#b56925; }
@keyframes attack { 25% { transform:translateX(6px); filter:brightness(1.18); } 65% { transform:translateX(-5px); } }
.attack { animation:attack .4s ease; }
#notice:not(:empty) { position:fixed; z-index:2; right:20px; bottom:20px; max-width:min(440px,calc(100vw - 40px)); background:#193a31; color:white; padding:13px 18px; border-radius:13px; box-shadow:0 8px 24px #193a3125; }
@media (max-width:760px) {
  .grid,.welcome { grid-template-columns:1fr; }
  .welcome .hero { min-height:260px; }
  .heroArt { opacity:.45; right:-95px; bottom:-95px; }
  .top { min-height:66px; }
  .top,main,footer { width:calc(100% - 28px); }
}
@media (prefers-reduced-motion:reduce) { .attack { animation:none; } }
@media print { .top,footer,button,#notice { display:none; } body { background:white; } main { width:100%; } .grid { display:block; } .card { break-inside:avoid; } }
