:root{
  --bg1:#2a1f1a;
  --bg2:#1d1714;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.04);
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.14);
  --text:#f6efe7;
  --muted:rgba(246,239,231,.75);
  --accent:#ff8a2a;
  --accent2:#ffb33a;
  --btn:#f2b437;
  --btn2:#eaa31d;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans TC","PingFang TC","Microsoft JhengHei",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1100px 700px at 18% 12%, rgba(255,185,90,.18), transparent 60%),
    radial-gradient(1000px 600px at 82% 18%, rgba(140,95,60,.18), transparent 62%),
    linear-gradient(140deg, var(--bg1), var(--bg2));
}

a{ color:inherit; text-decoration:none; }
ol{ margin:8px 0 0 18px; padding:0; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace; font-size:12px; opacity:.9; }

.spin2meal-shell{
  width:min(1200px, calc(100% - 32px));
  margin:18px auto 26px;
}

.hero{
  display:flex;
  gap:16px;
  align-items:stretch;
  padding:16px 16px 14px;
  border-radius:18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.hero-left{ flex:1; min-width:0; }
.hero-right{
  width:140px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.gawai{
  width:128px;
  height:128px;
  border-radius:16px;
  object-fit:cover;
  border:1px solid var(--stroke2);
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
}

.brandline{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:13px;
  color:rgba(246,239,231,.85);
}
.dot{
  width:10px; height:10px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, #ffd08a, #c9792c);
  box-shadow: 0 0 0 3px rgba(255,196,120,.12);
}
.title{
  margin:10px 0 10px;
  font-size:40px;
  letter-spacing:.5px;
  line-height:1.05;
}
.accent{ color:var(--accent); }
.accent2{ color:var(--accent2); }

.howto{
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
}

.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  user-select:none;
  font-weight:900;
  letter-spacing:.2px;
}
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  background: linear-gradient(180deg, var(--btn), var(--btn2));
  color:#22140f;
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}
.btn-primary:active{ transform: translateY(1px); }
.btn-wide{ width:100%; }

.finger{ width:22px; height:22px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }

.layout{
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap:14px;
  margin-top:14px;
}

.panel{
  border-radius:18px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  padding:14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.card{
  border-radius:16px;
  background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.08));
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  min-height: 230px;
  display:flex;
  flex-direction:column;
}

.card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 10px 6px;
  gap:10px;
}
.slot-badge{
  font-weight:900;
  font-size:13px;
  color:rgba(246,239,231,.92);
}
.card-actions{ display:flex; gap:8px; }

.pill{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:rgba(246,239,231,.92);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}
.pill:active{ transform: translateY(1px); }
.pill-keep{
  border-color: rgba(255,179,58,.36);
  background: rgba(255,179,58,.12);
}
.pill-keep[data-locked="1"],
.pill-keep[aria-pressed="true"]{
  border-color: rgba(255,179,58,.65);
  background: rgba(255,179,58,.22);
  color:#fff;
}

.imgwrap{
  position:relative;
  background: rgba(0,0,0,.18);
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
  aspect-ratio: 1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ph{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:rgba(246,239,231,.70);
  font-size:13px;
}
.img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}

.meta{
  padding:10px 10px 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.name{
  font-size:16px;
  font-weight:900;
  line-height:1.25;
  min-height: 2.4em;
}
.meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.go{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight:900;
  font-size:12px;
  color:rgba(246,239,231,.92);
}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color:rgba(246,239,231,.75);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:55%;
}

.footerbar{ margin-top:12px; }

.aside-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.aside-head h3{ margin:0; font-size:18px; font-weight:950; }
.aside-actions{ display:flex; gap:8px; flex-wrap:wrap; }

.chip{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:rgba(246,239,231,.92);
  padding:7px 10px;
  border-radius:10px;
  font-weight:900;
  font-size:12px;
}
.chip:active{ transform: translateY(1px); }

.result-list{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.result-list li{
  display:grid;
  grid-template-columns: 44px 1fr auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:14px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
}
.result-list img{
  width:44px;
  height:44px;
  border-radius:10px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.rTitle{ font-weight:950; font-size:13px; line-height:1.25; color:rgba(246,239,231,.95); }
.rSub{ font-size:12px; color:rgba(246,239,231,.70); }

.note{
  margin-top:12px;
  padding-top:12px;
  border-top:1px dashed rgba(255,255,255,.14);
  color:rgba(246,239,231,.82);
  font-size:13px;
}
.note-title{ font-weight:950; margin-bottom:4px; }

.pills{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.pill2{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-weight:900;
  font-size:12px;
}

.paths{ margin-top:8px; opacity:.9; }

@media (max-width: 980px){
  .layout{ grid-template-columns:1fr; }
  .hero{ padding:14px; }
  .title{ font-size:34px; }
  .hero-right{ width:120px; }
  .gawai{ width:110px; height:110px; }
}

@media (max-width: 520px){
  .spin2meal-shell{ width:calc(100% - 20px); }
  .title{ font-size:30px; }
  .grid{ gap:10px; }
  .card{ min-height: 210px; }
}

/* ===== Patch @20260216-1945 ===== */

/* 「保留 / 已保留」橙色一致（按鈕 + 狀態） */
.pill-keep,
.pill-keep.is-kept,
.pill-keep[data-kept="1"],
.pill-keep[data-kept="true"]{
  color: #ff6600 !important;
  border-color: rgba(255,102,0,.55) !important;
  background: rgba(255,102,0,.10) !important;
  font-weight: 800 !important;
}

/* 卡片菜/湯名橙色 */
.card .meta .name{
  color:#ff6600 !important;
  font-weight: 900 !important;
  letter-spacing: .3px;
}

/* 右側清單菜名橙色 */
.result-list li .t,
.result-list li .title,
.result-list li .name{
  color:#ff6600 !important;
  font-weight: 800 !important;
}

/* 手機：2x2 優先顯示（避免 aside 擠走） */
@media (max-width: 980px){
  .layout{ display:block !important; }
  .aside{ margin-top:12px !important; }
}

/* 底部按鈕保持可見 */
.footerbar{ position: sticky; bottom: 10px; z-index: 50; padding-bottom: 8px; }
