/* 約書亞大富翁｜全站統一的「原圖風格」：石框面板、木牌標題、木頭頁首、藍天城堡背景
   素材都來自設計圖（tools/art-home*.js 產生）：/art/home2/frame.png、sign.png、tabs.png、/art/home/castle.png
   用法：<link rel="stylesheet" href="/theme-art.css">，body 加 class="art" */

/* ── 背景：藍天、遠方城堡、樹林 ── */
body.art::before { content: ''; position: fixed; z-index: -1; right: 2%; top: 40px; width: min(46vw, 380px); aspect-ratio: 390 / 140; pointer-events: none;
  background: url(/art/home/castle.png) center / contain no-repeat;
  -webkit-mask: radial-gradient(closest-side, #000 60%, transparent); mask: radial-gradient(closest-side, #000 60%, transparent); }
body.art { background:
  linear-gradient(180deg, #6cb5dc 0, #8cc8e6 140px, #6fa98f 420px, #437f69 800px, #356c58 100%) fixed; min-height: 100vh; }

/* ── 頁首：設計圖的木頭 ── */
.art .topbar { background: url(/art/home2/tabs.png) center / 100% 100%, #7c4621; border-bottom: 4px solid #3f1f08;
  box-shadow: inset 0 3px 0 rgba(255,220,170,.3), 0 4px 10px rgba(0,0,0,.25); padding: 12px 16px; }
.art .topbar .title { font-size: 19px; color: #fff7e2; text-shadow: 0 2px 0 rgba(40,15,0,.6); }
.art .topbar .sub { color: #ffeccc; font-weight: 700; opacity: 1; }
.art .topbar button.link { border: 0 solid transparent; border-image: url(/art/home2/sign.png) 22 40 fill / 16px 24px stretch; background: none;
  color: #fff6dc; padding: 8px 16px; font-weight: 900; text-shadow: 0 2px 0 rgba(40,15,0,.5); }

/* ── 面板：石框＋羊皮紙 ── */
.art .card, .art .modal { border: 18px solid transparent; border-bottom-width: 22px; border-radius: 26px;
  border-image: url(/art/home2/frame.png) 62 62 72 62 / 24px 24px 28px 24px round;
  background: linear-gradient(180deg, #fbf1dc, #f6e6c6) padding-box; box-shadow: none; filter: drop-shadow(0 8px 10px rgba(20,40,20,.28)); }
.art .card + .card { margin-top: 20px; }
.art .card.hero { background: linear-gradient(180deg, #fffaf0, #f7e9c9) padding-box; }
.art .card h2 { color: #4a2c12; font-size: 20px; }
.art .modal { padding: 16px; }
.art .modal h3 { color: #4a2c12; }

/* ── 木牌標題（.plank、.tag、各頁的分頁按鈕） ── */
.art .plank, .art .tag { border: 0 solid transparent; border-radius: 0; background: none; box-shadow: none;
  border-image: url(/art/home2/sign.png) 22 40 fill / 20px 30px stretch; color: #fff6dc; text-shadow: 0 2px 0 rgba(40,15,0,.55);
  padding: 7px 26px; filter: drop-shadow(0 3px 3px rgba(40,15,0,.3)); }

/* ── 按鈕：設計圖的黃色圓角大按鈕 ── */
.art .btn { border-radius: 999px; border: 3px solid #b06f06; color: #3f2410;
  background: linear-gradient(180deg, #fff1a0 0%, #ffd84d 42%, #f5b223 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.7), inset 0 -4px 0 rgba(180,100,0,.25), 0 6px 0 #a66604, 0 9px 12px rgba(0,0,0,.2); }
.art .btn:active { box-shadow: inset 0 3px 0 rgba(255,255,255,.7), 0 2px 0 #a66604; }
.art .btn.green { background: linear-gradient(180deg, #8be0a7, #43b56d 50%, #2a9450); border-color: #1d6b3c; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 6px 0 #1d6b3c, 0 9px 12px rgba(0,0,0,.2); }
.art .btn.red { background: linear-gradient(180deg, #f58a7c, #df4a3a 50%, #c4362a); border-color: #8e2218; color: #fff;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.4), 0 6px 0 #8e2218, 0 9px 12px rgba(0,0,0,.2); }
.art .btn.blue { background: linear-gradient(180deg, #8cc6f2, #3d8fd6 50%, #2a73b8); border-color: #1b5a8f; color: #fff;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.4), 0 6px 0 #1b5a8f, 0 9px 12px rgba(0,0,0,.2); }
.art .btn.ghost { background: linear-gradient(180deg, #fffcf3, #f1e2c2); border: 2px solid #d9bd86; color: #5a3418; text-shadow: none;
  box-shadow: inset 0 2px 0 #fff, 0 4px 0 #c9a46a; }
.art .btn.sm { border-radius: 999px; }

/* ── 輸入框、小標籤、清單 ── */
.art .input, .art form.inline input, .art form.inline select { background: #fffdf6; border: 2px solid #d9bd86; box-shadow: inset 0 2px 3px rgba(120,80,30,.15); }
.art .chip { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 0 rgba(120,80,30,.18); }
.art .team-badge { border: 2px solid #f4c24e; box-shadow: 0 0 0 1.5px #8a5a10, 0 3px 0 #5a3008; border-radius: 10px 10px 50% 50% / 10px 10px 35% 35%; }
.art .scroll { border-color: #d9bd86; background: #fffdf6; }

/* ── 管理後台的上方分頁：木板＋金框 ── */
.art .nav { padding: 8px; border-radius: 16px; background: url(/art/home2/tabs.png) center / 100% 100%, #7c4621;
  border: 3px solid #4a250b; box-shadow: inset 0 3px 0 rgba(255,220,170,.3), 0 4px 0 #3a1c07; }
.art .nav button { background: none; border: 2px solid transparent; color: #fff1d2; text-shadow: 0 2px 0 rgba(40,15,0,.6); border-radius: 12px; }
.art .nav button.on { color: #ffd84d; background: rgba(60,25,5,.38); border-color: #f2c14e; box-shadow: 0 0 10px rgba(255,210,80,.7), inset 0 2px 6px rgba(0,0,0,.35); }
.art .sub-nav button { border-color: #d9bd86; background: #fffdf6; color: #5a3418; }
.art .sub-nav button.on { color: #fff6dc; background: linear-gradient(180deg, #a86b3b, #7c4621); border-color: #4a250b; }
.art .kpi div, .art .chap, .art .att { background: linear-gradient(180deg, #fffcf3, #f6e9cd); border: 2px solid #e2c690; box-shadow: inset 0 2px 0 #fff, 0 4px 0 #cfae74; }
.art .chap.cur, .art .att.live { border-color: #f2b21d; background: linear-gradient(180deg, #fff8dc, #ffecb0); }
.art table th { color: #6b4a2a; }

/* ── 登入頁 ── */
.art .hills { display: none; }
.art .login .board-strip i { border-radius: 8px 8px 50% 50% / 8px 8px 35% 35%; border-color: #f4c24e; box-shadow: 0 0 0 1.5px #8a5a10, 0 3px 0 #5a3008; }

/* 列印時不要背景圖 */
@media print { body.art { background: #fff; } .art .card { border: 2px solid #ccc; border-image: none; } }
