:root { --ink: #f2e7d6; --muted: #a8998a; --amber: #e8b977; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: radial-gradient(60% 50% at 70% 60%, rgba(255, 120, 40, .18), transparent 70%), radial-gradient(40% 50% at 0% 20%, rgba(90, 140, 70, .12), transparent 70%), #110d0a; color: var(--ink); font-family: "Noto Sans JP", sans-serif; touch-action: none; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.top { position: fixed; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; pointer-events: none; }
.top > * { pointer-events: auto; }
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo b { font-family: "Shippori Mincho", serif; font-size: 26px; letter-spacing: .12em; color: var(--amber); }
.logo small { font-size: 12px; color: var(--muted); }
.right { display: flex; gap: 8px; }
.pill { white-space: nowrap; padding: 6px 14px; border-radius: 99px; border: 1px solid rgba(232, 185, 119, .35); background: rgba(30, 24, 18, .8); font-size: 12px; font-weight: 700; }
.pill b { font-size: 18px; color: var(--amber); margin-left: 4px; }
.pill span { color: var(--muted); }
.copy { position: fixed; left: 28px; top: 110px; width: 300px; pointer-events: none; }
.copy h1 { margin: 0; font-family: "Shippori Mincho", serif; font-weight: 800; font-size: 40px; line-height: 1.3; }
.copy h1 span { color: var(--amber); text-shadow: 0 0 24px rgba(255, 160, 60, .5); }
.copy p { font-size: 13px; line-height: 1.9; color: #cdbfae; }
.hints { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.hints em { font-style: normal; display: inline-block; min-width: 82px; margin-right: 8px; padding: 1px 10px; border-radius: 99px; background: var(--amber); color: #1a140e; font-weight: 700; text-align: center; }
.sauce { pointer-events: auto; display: inline-flex; margin-top: 18px; border: 1px solid rgba(232, 185, 119, .5); border-radius: 99px; overflow: hidden; }
.sauce button { border: 0; background: transparent; padding: 8px 20px; font-weight: 700; }
.sauce button[aria-pressed="true"] { background: var(--amber); color: #1a140e; }
.grade { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; padding: 14px 26px; border-radius: 18px; background: rgba(30, 24, 18, .9); border: 1px solid rgba(232, 185, 119, .5); box-shadow: 0 0 40px -6px rgba(255, 160, 60, .5); animation: pop .5s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
.grade b { font-size: 13px; color: var(--muted); }
.grade span { font-family: "Shippori Mincho", serif; font-size: 28px; font-weight: 800; }
.grade em { font-style: normal; font-weight: 900; font-size: 20px; color: var(--amber); }
.grade.best span { color: var(--amber); }
.grade.bad span { color: #e0784a; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 10px) scale(.85); } }
@media (max-width: 899px) {
  .copy { left: 16px; right: 16px; top: 64px; width: auto; }
  .copy h1 { font-size: 26px; }
  .copy p { display: none; }
  .hints { grid-auto-flow: column; justify-content: start; }
  .sauce { margin-top: 10px; }
  .logo small { display: none; }
}

[hidden] { display: none !important; }
/* 串ごとの「焼き上がり！」ボタン：焼き加減がちょうどの串は光って知らせる */
.rowbtns { position: fixed; inset: 0; pointer-events: none; }
.rowbtns button { position: absolute; transform: translateY(-50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border: 1px solid rgba(232, 185, 119, .55); border-radius: 99px; font: 800 12.5px "Noto Sans JP", sans-serif; color: #f2e7d6; background: rgba(30, 24, 18, .85); cursor: pointer; white-space: nowrap; transition: background .2s, box-shadow .2s, color .2s; }
.rowbtns button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #e89c8c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.rowbtns button.ready { color: #1a140e; background: linear-gradient(180deg, #ffd27a, #e8a24a); border-color: #ffd27a; box-shadow: 0 0 22px -2px rgba(255, 190, 90, .8); animation: rb 1.2s ease-in-out infinite; }
.rowbtns button.burnt { color: #fff; background: #8a2a14; border-color: #e0784a; }
.rowbtns button:disabled { opacity: .35; cursor: default; animation: none; }
@keyframes rb { 50% { transform: translateY(-50%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .rowbtns button.ready { animation: none; } }
