  *{ box-sizing: border-box; margin: 0; }
  :root{
    --ink:#3f2a12; --ink-2:#6f4f2a; --cream:#f0dcbb; --gold:#d99a33; --wood:#8a5e18;
  }
  html{ scroll-behavior: smooth; }
  body {
    font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans JP", "Microsoft JhengHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--cream);
    background: #1b100b url('/art/tex-wood.webp') repeat;
  }
  img { max-width: 100%; }
  a { color: #d6b06a; }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 18px; }
  .btn {
    display: inline-block; padding: 13px 30px; border-radius: 999px;
    font-size: 15.5px; font-weight: 800; text-decoration: none; white-space: nowrap;
    background: linear-gradient(#f5c463, #d99a33); color: #3a2208;
    border: 2px solid #8a5e18;
    box-shadow: 0 3px 0 #74490f, 0 8px 18px rgba(0,0,0,.35);
  }
  .btn.ghost { background: rgba(0,0,0,.28); color: #e7cb98; border-color: rgba(214,176,106,.5); box-shadow: none; }
  .btn.sm { padding: 8px 18px; font-size: 13.5px; box-shadow: 0 2px 0 #74490f; }
  .btn.lg { padding: 15px 40px; font-size: 17px; }
  .topbar {
    position: sticky; top: 0; z-index: 5;
    background: linear-gradient(180deg, rgba(38,23,13,.97), rgba(26,15,9,.97));
    border-bottom: 2px solid rgba(214,176,106,.24);
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
  }
  .topbar .bar { max-width: 1040px; margin: 0 auto; padding: 8px 14px; display: flex; align-items: center; gap: 16px; }
  .brand img { display: block; height: 34px; width: auto; }
  .tnav { display: none; }
  @media (min-width: 900px) { .tnav { display: flex; gap: 22px; margin-left: auto; } }
  .tnav a { text-decoration: none; color: #e2c795; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
  .topbar .btn { margin-left: auto; }
  @media (min-width: 900px) { .topbar .btn { margin-left: 0; } }
  section[id], article[id] { scroll-margin-top: 64px; }
  .hero {
    background:
      linear-gradient(rgba(20,11,8,.60), rgba(20,11,8,.88)),
      url('/art/workshop-bg.webp') center / cover no-repeat,
      #1b100b;
  }
  .hero-in { max-width: 1040px; margin: 0 auto; display: grid; gap: 10px; align-items: center; padding: 36px 18px 32px; }
  @media (min-width: 860px) { .hero-in { grid-template-columns: 1.1fr .9fr; padding: 52px 18px 46px; } }
  .hero h1 { margin: 0; font-size: 0; line-height: 0; }
  .hero .logo { width: min(360px, 74vw); height: auto; }
  .tagline { margin-top: 16px; font-size: clamp(19px, 3.2vw, 27px); font-weight: 800; line-height: 1.5;
             color: #ffeccb; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
  .sub { margin-top: 10px; font-size: 14.5px; line-height: 1.85; color: #cbb18c; }
  .cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
  .hero-art { width: min(300px, 58vw); height: auto; justify-self: center;
              filter: drop-shadow(0 10px 22px rgba(0,0,0,.55)); }
  .paper {
    color: var(--ink);
    background: #f6e8cb url('/art/tex-parchment-light.webp') repeat;
    border-top: 3px solid #8a5e18; border-bottom: 3px solid #8a5e18;
  }
  .paper a { color: #8a5e18; }
  .paper section { padding: 38px 0; }
  .paper section + section { border-top: 1px solid rgba(74,49,23,.14); }
  .paper h2 { text-align: center; font-size: 0; }
  .paper h2 span {
    display: inline-block; padding: 9px 28px; border-radius: 14px;
    border: 2px solid rgba(138,94,24,.5); background: linear-gradient(#fff7e4, #f2e0bd);
    box-shadow: 0 2px 0 rgba(138,94,24,.22);
    font-size: clamp(17px, 2.7vw, 22px); font-weight: 900; letter-spacing: .02em; color: var(--ink);
  }
  .lead { max-width: 780px; margin: 18px auto 0; font-size: 15px; line-height: 1.95; color: var(--ink-2); }
  .lead p + p { margin-top: 10px; }
  .lead b { color: var(--ink); }
  .formula { margin: 22px 0 4px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
  .formula figure { width: 74px; text-align: center; }
  .formula img { width: 48px; height: 48px; }
  .formula .q {
    width: 48px; height: 48px; margin: 0 auto; border-radius: 10px;
    border: 2px dashed rgba(138,94,24,.6); color: #8a5e18;
    font-size: 24px; font-weight: 800; line-height: 44px;
  }
  .formula figcaption { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
  .formula .op { width: 26px; height: 26px; opacity: .8; }
  .plays { margin-top: 24px; display: grid; gap: 18px; }
  @media (min-width: 820px) { .plays { grid-template-columns: repeat(3, 1fr); } }
  .card {
    padding: 16px 18px 22px; border-radius: 16px;
    border: 2px solid rgba(138,94,24,.42);
    background: linear-gradient(#fffaee, #f6e7c6);
    box-shadow: 0 6px 0 rgba(138,94,24,.16);
    text-align: center;
  }
  .card .art { width: 100%; max-width: 300px; height: auto; }
  .card h3 { margin-top: 4px; font-size: 19px; font-weight: 900; letter-spacing: .08em; color: var(--ink); }
  .card .body { margin-top: 10px; text-align: left; }
  .card .body p { margin-top: 8px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
  .card .body b { color: var(--ink); }
  .card .body p.seg { margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(74,49,23,.14); }
  .card .body p.seg:first-child { margin-top: 6px; padding-top: 0; border-top: 0; }
  .rail {
    position: relative;
    --slide: min(80vw, 560px);
    display: grid; grid-auto-flow: column; grid-auto-columns: var(--slide); gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 12px max(52px, calc((100% - var(--slide)) / 2)) 18px;
    perspective: 1200px;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  @media (min-width: 900px) { .rail { --slide: min(25vw, 320px); } }
  .rail a.shot { display: block; cursor: zoom-in; }
  .rail figure { position: relative; margin: 0; scroll-snap-align: center; }
  .rail img {
    width: 100%; height: auto; display: block; aspect-ratio: 8 / 5; object-fit: cover;
    border-radius: 12px; border: 2px solid rgba(138,94,24,.45); background: #1b100b;
    box-shadow: 0 10px 26px rgba(60,35,10,.35);
  }
  .slider {
    position: relative;
    margin-top: 26px;
    padding: 10px 0 4px;
    border: 1px solid rgba(138,94,24,.34);
    border-radius: 16px;
    background: #e9cf9f url('/art/tex-parchment.webp') repeat;
    box-shadow: inset 0 1px 0 rgba(255,250,235,.5), inset 0 -1px 0 rgba(138,94,24,.16);
  }
  .guide-prompt {
    max-width: 820px; margin: 0 auto; padding: 18px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    border: 1px solid rgba(138,94,24,.4); border-left: 5px solid #b17a27;
    border-radius: 14px; background: linear-gradient(#fff8e8, #f0ddb8);
    box-shadow: 0 4px 0 rgba(138,94,24,.12);
  }
  .guide-prompt .eyebrow { color: #805018; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
  .guide-prompt h2 { margin-top: 3px; text-align: left; font-size: 18px; font-weight: 900; line-height: 1.5; color: var(--ink); }
  .guide-prompt p { margin-top: 4px; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
  .guide-prompt .btn { flex: 0 0 auto; }
  @media (max-width: 620px) {
    .guide-prompt { align-items: stretch; flex-direction: column; gap: 12px; padding: 16px; }
    .guide-prompt .btn { text-align: center; }
  }
  .arw {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; text-decoration: none;
    background: rgba(28,17,11,.82); border: 2px solid rgba(214,176,106,.6);
    color: #f0dcbb; font-size: 23px; line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,.45);
  }
  .arw.p { left: 0; }
  .arw.n { right: 0; }
  @media (max-width: 560px) { .arw { width: 40px; height: 40px; font-size: 20px; } }
  .lb {
    margin: auto;
    max-width: min(94vw, 1180px); max-height: 92vh;
    padding: 0; border: 3px solid rgba(214,176,106,.6); border-radius: 14px;
    background: #1b100b; overflow: visible;
  }
  .lb::backdrop { background: rgba(12,7,4,.82); }
  .lb img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: 11px; }
  .lb-x {
    position: absolute; top: -16px; right: -16px;
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: linear-gradient(#f5c463, #d99a33); color: #3a2208;
    border: 2px solid #8a5e18; font-size: 19px; font-weight: 900; line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,.5);
  }
  @media (max-width: 560px) { .lb-x { top: 6px; right: 6px; } }
  @supports (animation-timeline: view()) {
    .rail figure { animation: flow linear both; animation-timeline: view(inline); }
    @keyframes flow {
      0%, 28%   { transform: rotateY(-32deg) scale(.7); opacity: .8; }
      50%       { transform: none; opacity: 1; }
      72%, 100% { transform: rotateY(32deg) scale(.7); opacity: .8; }
    }
  }
  .areas { margin-top: 20px; display: grid; gap: 14px; padding: 0; }
  @media (min-width: 700px) { .areas { grid-template-columns: repeat(2, 1fr); } }
  .areas li {
    display: flex; gap: 12px; align-items: center; list-style: none;
    padding: 10px 14px; border-radius: 14px;
    border: 1px solid rgba(138,94,24,.3); background: rgba(255,255,255,.34);
  }
  .areas img { width: 104px; height: auto; flex: none; }
  .areas span { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
  table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px;
          background: rgba(255,255,255,.34); border: 1px solid rgba(138,94,24,.28); }
  caption { text-align: left; font-size: 13px; font-weight: 800; color: #7a5214; padding: 18px 0 6px; }
  th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid rgba(74,49,23,.13); }
  th { font-size: 12px; font-weight: 800; color: #7a5214; background: rgba(138,94,24,.08); }
  td { color: var(--ink-2); }
  td.price { font-weight: 800; white-space: nowrap; color: var(--ink); }
  td.price .fx { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: #8a6a3a; }
  .fxnote { margin-top: 14px; font-size: 12.5px; line-height: 1.8; color: #8a6a3a; }
  .soulnote { margin-top: 8px; font-size: 13px; line-height: 1.8; color: #6b4a1a; }
  .ptabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .ptabs[hidden] { display: none; }
  .ptabs button {
    font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
    padding: 7px 18px; border-radius: 999px;
    border: 1.5px solid rgba(138,94,24,.45); background: rgba(255,255,255,.4); color: #7a5214;
  }
  .ptabs button[aria-selected="true"] { background: #7a5214; border-color: #7a5214; color: #fff8e8; }
  .ptabs button:focus-visible { outline: 3px solid rgba(201,146,40,.6); outline-offset: 2px; }
  #pay[data-tabs] .ppanel[hidden] { display: none; }
  #pay[data-tabs] caption { display: none; }
  th:first-child, td:first-child { width: 26%; }
  th:nth-child(2), td:nth-child(2) { width: 20%; }
  .notes { margin-top: 18px; padding-left: 20px; }
  .notes li { font-size: 13.5px; line-height: 1.9; color: var(--ink-2); margin-top: 8px; }
  .realms { margin-top: 20px; display: grid; gap: 16px 10px;
            grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); }
  .realms a { text-align: center; text-decoration: none; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
  .realms img { width: 52px; height: 52px; }
  .realms b { display: block; margin-top: 4px; font-weight: 700; color: var(--ink); }
  .realms .code { display: block; margin-top: 2px; font-size: 11px; color: #8a6a3a; letter-spacing: .04em; }
  .band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 48px 18px 54px;
    text-align: center;
    background: #1b100b;
  }
  .band-bg {
    position: absolute; inset: 0; z-index: -1;
    width: 100%; height: 100%; object-fit: cover; object-position: center 72%; display: block;
  }
  .band::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(rgba(20,11,8,.10), rgba(20,11,8,.14) 45%, rgba(20,11,8,.66));
  }
  .band .plaque {
    display: inline-block; max-width: 620px; padding: 24px 28px; border-radius: 18px;
    border: 2px solid rgba(138,94,24,.55); background: linear-gradient(#fff7e4, #f0dcb6);
    box-shadow: 0 10px 26px rgba(0,0,0,.45); color: var(--ink);
  }
  .band .t { font-size: clamp(17px, 2.6vw, 22px); font-weight: 900; line-height: 1.5; }
  .band .s { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
  .band .btn { margin-top: 18px; }
  footer { padding: 26px 0 46px; text-align: center; font-size: 13px; color: #a98d63; }
  footer .flogo { height: 30px; width: auto; opacity: .92; }
  footer nav { margin-top: 12px; }
  footer a { margin: 0 6px; }
  footer .sep { opacity: .45; }
  footer .copy { margin-top: 14px; font-size: 12px; color: #8a7050; }
