*{box-sizing:border-box}
.adsbygoogle {
  margin: 16px 0;
}

footer {
  margin: 16px 0;
  text-align: center;
}
:root{--bg:#f4efe9;--paper:#fffdf9;--ink:#201a17;--muted:#746a64;--line:#e7ddd4;--accent:#8b3529;--accent-dark:#65231c}
html{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;background:var(--bg);color:var(--ink)}
body{margin:0;min-height:100vh;background:radial-gradient(circle at top right,#eaded1 0,transparent 32rem),var(--bg)}
button{font:inherit}.page{width:min(820px,100%);margin:auto;padding:30px 18px 64px}
.hero{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:20px}
.hero h1{font-size:clamp(29px,6vw,46px);letter-spacing:-.04em;margin:0}.hero p{color:var(--muted);margin:9px 0 0;line-height:1.7}
.sub-button{border:1px solid var(--line);background:var(--paper);border-radius:12px;min-height:44px;padding:0 15px;font-weight:700;cursor:pointer;white-space:nowrap}
.status-card,.quiz-card,.result-card,.howto{background:rgba(255,253,249,.96);border:1px solid var(--line);border-radius:20px}
.status-card{padding:14px 17px;margin-bottom:12px}.status-top{display:flex;justify-content:space-between;font-size:13px;font-weight:800;color:var(--muted)}
.progress{height:7px;border-radius:99px;background:#eadfd5;margin-top:10px;overflow:hidden}.progress span{display:block;height:100%;width:10%;background:var(--accent);transition:width .2s ease}
.quiz-card{padding:clamp(22px,5vw,38px)}.badges{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.badge{font-size:12px;font-weight:800;background:#efe3d6;color:#6d402f;padding:6px 9px;border-radius:99px}
.cocktail-name{font-size:13px;color:var(--muted);font-weight:700}.quiz-card h2{font-size:clamp(21px,4vw,29px);line-height:1.55;margin:18px 0 24px}
.answers{display:grid;grid-template-columns:1fr 1fr;gap:11px}.answer{display:flex;align-items:center;gap:12px;text-align:left;min-height:64px;padding:13px 15px;border:1px solid #dfd4cb;border-radius:14px;background:#fff;cursor:pointer;color:var(--ink);font-weight:700;line-height:1.45}
.answer:hover{border-color:#b9a69a;background:#fffaf6}.answer:disabled{cursor:default}.answer.correct{border-color:#76a08b;background:#eef6f1;color:#23513c}.answer.wrong{border-color:#c88880;background:#faeeec;color:#7d2e28}
.letter{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#f0e9e2;font-size:12px;font-weight:900}
.feedback{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.feedback-title{font-size:20px;font-weight:900}.feedback p{color:#5d514a;line-height:1.8}
.recipe-box{background:#f5ede5;border-radius:13px;padding:14px 16px;margin:14px 0 18px;line-height:1.8;font-size:14px}.recipe-box strong{display:block;margin-bottom:3px;color:#594337}
.primary-button{border:0;background:var(--accent);color:#fff;min-height:48px;border-radius:12px;padding:0 20px;font-weight:900;cursor:pointer}.primary-button:hover{background:var(--accent-dark)}
.result-card{text-align:center;padding:42px 24px}.result-kicker{letter-spacing:.2em;color:var(--muted);font-size:12px;font-weight:900}.result-score{font-size:clamp(48px,12vw,78px);font-weight:950;letter-spacing:-.06em}
.result-card h2{margin:6px 0 8px}.result-card p{color:var(--muted);line-height:1.75}.howto{margin-top:18px;padding:25px}.howto h2{margin-top:0;font-size:22px}.howto p{color:#62564f;line-height:1.85}
.legend{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.legend span{padding:7px 10px;border-radius:999px;background:#eee5dc;font-size:12px;font-weight:800;color:#645147}
.source-note{font-size:12px!important;color:#8a7e76!important}[hidden]{display:none!important}
@media(max-width:600px){.page{padding:20px 13px 50px}.hero{align-items:flex-start}.hero .sub-button{font-size:13px;padding:0 12px}.answers{grid-template-columns:1fr}.quiz-card{border-radius:17px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.hero-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.link-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:var(--ink)}
.term-links{margin:16px 0 19px;padding:15px 16px;border:1px solid var(--line);border-radius:13px;background:#fff}
.term-links-title{font-size:13px;font-weight:900;color:#5e4c42;margin-bottom:10px}
.term-link-list{display:flex;gap:7px;flex-wrap:wrap}
.term-link{display:inline-flex;align-items:center;min-height:34px;padding:5px 10px;border-radius:999px;background:#f0e7df;color:#633c31;text-decoration:none;font-size:13px;font-weight:800}
.term-link:hover{background:#e5d7cc}
.dictionary-text-link{color:var(--accent);font-weight:800;text-decoration:none}
.dictionary-text-link:hover{text-decoration:underline}
.dictionary-page{width:min(980px,100%);margin:auto;padding:30px 18px 64px}
.dictionary-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:22px}
.dictionary-header h1{font-size:clamp(29px,6vw,45px);letter-spacing:-.04em;margin:0}
.dictionary-header p{color:var(--muted);line-height:1.75;margin:9px 0 0}
.back-link{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);text-decoration:none;font-weight:800;white-space:nowrap}
.dict-search-wrap{margin:18px 0 24px}
.dict-search{width:100%;min-height:50px;border:1px solid #d8cbc1;border-radius:13px;background:#fff;padding:0 16px;font:inherit;font-size:16px;color:var(--ink);outline:none}
.dict-search:focus{border-color:#a9786b;box-shadow:0 0 0 3px rgba(139,53,41,.10)}
.dict-section{margin:28px 0}
.dict-section h2{font-size:21px;margin:0 0 12px}
.dict-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dict-card{display:block;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);text-decoration:none;min-width:0}
.dict-card:hover{border-color:#bda99c;background:#fff}
.dict-card strong{display:block;font-size:16px}
.dict-card span{display:block;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.5}
.dict-empty{color:var(--muted);padding:20px 0}
.entry-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:clamp(23px,5vw,40px)}
.entry-type{display:inline-flex;padding:6px 9px;border-radius:999px;background:#efe3d6;color:#6d402f;font-size:12px;font-weight:900}
.entry-card h1{font-size:clamp(31px,7vw,52px);letter-spacing:-.04em;margin:12px 0 10px}
.entry-lead{font-size:17px;line-height:1.8;color:#5e524b}
.entry-section{border-top:1px solid var(--line);margin-top:23px;padding-top:21px}
.entry-section h2{font-size:19px;margin:0 0 10px}
.entry-section p,.entry-section li{color:#5d514a;line-height:1.85}
.entry-related{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none}
.entry-related a{display:inline-flex;padding:7px 10px;border-radius:999px;background:#eee5dc;color:#633c31;text-decoration:none;font-size:13px;font-weight:800}
.entry-nav{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
@media(max-width:760px){
  .dict-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dictionary-header{flex-direction:column}
}
@media(max-width:520px){
  .hero-actions{width:100%;justify-content:flex-start}
  .hero{flex-direction:column}
  .dict-grid{grid-template-columns:1fr}
}
