:root {
  --ink: #12100c;
  --gold: #caa86a;
  --gold-bright: #f4d99e;
  --line: rgba(202, 168, 106, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body {
  margin: 0;
  background: #080806;
  color: #e9e0cf;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.topbar {
  position: fixed; z-index: 50; inset: 0 0 auto 0; height: 82px;
  display: flex; align-items: center; padding: 0 4vw 0 3vw;
  background: linear-gradient(180deg, rgba(5,5,4,.96), rgba(5,5,4,.76) 70%, transparent);
  border-bottom: 1px solid rgba(202,168,106,.16);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 310px; height: 70px; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: radial-gradient(circle, rgba(202,168,106,.13), rgba(7,7,5,.82) 66%);
  box-shadow: inset 0 0 20px rgba(202,168,106,.17), 0 0 16px rgba(202,168,106,.09);
}
.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  transform: rotate(-45deg);
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.7));
}
.brand-wording { display: block; white-space: nowrap; }
.brand-wording b { display: block; letter-spacing: .16em; color: var(--gold-bright); font-size: 15px; }
.brand-wording small { display: block; margin-top: 5px; color: #8d806a; letter-spacing: .18em; font-size: 10px; }
.top-links { display: flex; justify-content: center; gap: 42px; flex: 1; }
.top-links a { color: #b7ac99; font-size: 13px; letter-spacing: .16em; transition: color .2s; }
.top-links a:hover { color: var(--gold-bright); }
.mini-cta {
  min-width: 210px; padding: 13px 20px; text-align: center;
  color: #18140d; font-weight: 800; letter-spacing: .08em; font-size: 13px;
  background: linear-gradient(135deg, #8d6a32, #f2d28c 50%, #9f783b);
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
}

.side-nav {
  position: fixed; z-index: 45; left: 24px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px; width: 152px;
}
.side-line { position: absolute; left: 18px; top: 20px; bottom: 20px; width: 1px; background: var(--line); }
.side-nav button {
  position: relative; display: flex; align-items: center; width: 100%; height: 60px;
  border: 0; background: transparent; cursor: pointer; text-align: left; opacity: .55; transition: .25s;
}
.side-nav button:hover, .side-nav button.active { opacity: 1; transform: translateX(4px); }
.side-dot {
  position: relative; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid #6e5a39; background: #0b0a08; border-radius: 50%;
  font: 700 10px/1 Arial; color: #9b8259; transition: .25s;
}
.side-nav button.active .side-dot {
  color: #1a140b; background: var(--gold-bright); border-color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(229,195,125,.42);
}
.side-copy { margin-left: 12px; display: flex; flex-direction: column; }
.side-copy b { color: #ead7b0; font-size: 12px; letter-spacing: .18em; }
.side-copy small { color: #7e725e; font-size: 9px; margin-top: 3px; white-space: nowrap; }

.panel {
  position: relative; min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 110px 7vw 55px 180px;
  background:
    radial-gradient(circle at 75% 42%, rgba(124,91,44,.14), transparent 32%),
    linear-gradient(135deg, #12100c, #050504 65%);
}
.panel::after {
  content: ""; pointer-events: none; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 36px 36px; opacity: .5;
}
.hero { justify-content: flex-start; }
.hero-copy { position: relative; z-index: 3; width: 48%; max-width: 760px; padding-left: 5vw; }
.eyebrow, .section-heading > p { color: var(--gold); letter-spacing: .46em; font: 700 11px/1.4 Arial; }
.hero h1 { margin: 18px 0; color: #e9dcc4; font-size: clamp(54px, 6.8vw, 112px); line-height: .98; letter-spacing: .08em; text-shadow: 0 3px 0 #4c3a20, 0 14px 35px #000; }
.hero h1 span { display: block; margin-top: 12px; color: var(--gold-bright); }
.lead { color: #b7ab97; line-height: 2; letter-spacing: .12em; font-size: 15px; }
.ornament { display: flex; align-items: center; gap: 10px; width: 270px; color: var(--gold); margin: 23px 0; }
.ornament i { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament b { font-size: 9px; }
.primary-cta {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 265px; height: 70px; margin-top: 22px; color: #1d170d;
  background: linear-gradient(135deg, #7d5a29, #f4d99e 48%, #9d7437);
  clip-path: polygon(9% 0, 91% 0, 100% 50%, 91% 100%, 9% 100%, 0 50%);
  box-shadow: 0 20px 60px rgba(0,0,0,.4); transition: filter .2s, transform .2s;
}
.primary-cta:hover { filter: brightness(1.15); transform: translateY(-3px); }
.primary-cta span { font-weight: 900; letter-spacing: .18em; }
.primary-cta small { margin-top: 5px; font: 8px/1 Arial; letter-spacing: .22em; opacity: .65; }
.hero-art { position: absolute; z-index: 2; top: 9%; right: 3%; width: 50%; height: 83%; }
.numbered-image { position: relative; overflow: hidden; }
.numbered-image > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.numbered-image > span, .image-file-tag {
  position: absolute; z-index: 4; right: 12px; bottom: 12px; padding: 7px 11px;
  color: #191309; background: var(--gold-bright); border: 1px solid #fff0c7;
  font: 800 12px/1 Arial; letter-spacing: .08em; box-shadow: 0 5px 20px #000;
}
.placeholder-art { display: grid; place-items: center; }
.art-frame {
  position: relative; display: grid; place-items: center; gap: 12px; width: 70%; height: 76%;
  border: 1px solid rgba(202,168,106,.42);
  background:
    linear-gradient(135deg, transparent 18px, rgba(202,168,106,.05) 0) top left,
    radial-gradient(circle, rgba(158,119,58,.25), rgba(10,9,7,.9) 66%);
  box-shadow: inset 0 0 90px #000, 0 0 0 8px rgba(202,168,106,.03);
  color: #75664e;
}
.art-frame::before, .art-frame::after {
  content: ""; position: absolute; width: 48px; height: 48px;
  border-color: var(--gold); opacity: .65;
}
.art-frame::before { left: -1px; top: -1px; border-left: 2px solid; border-top: 2px solid; }
.art-frame::after { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.art-frame strong { letter-spacing: .25em; color: #9c8968; }
.art-frame small { font-size: 11px; }
.art-frame code { color: #625744; font-size: 10px; }
.art-icon { font-size: clamp(70px, 10vw, 160px); color: rgba(202,168,106,.22); text-shadow: 0 0 35px rgba(202,168,106,.12); }
.ambient { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .45; }
.ambient-one { width: 400px; height: 400px; right: 28%; top: 14%; background: rgba(133,64,14,.25); }
.ambient-two { width: 250px; height: 250px; right: 5%; bottom: 8%; background: rgba(153,126,66,.18); }
.scroll-hint {
  position: absolute; z-index: 4; bottom: 25px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  border: 0; background: none; color: #88785e; cursor: pointer; font: 8px/1 Arial; letter-spacing: .3em;
}
.scroll-hint i { display: block; width: 1px; height: 30px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 1.8s infinite; }

.section-heading { position: absolute; z-index: 3; top: 115px; left: 180px; right: 6vw; text-align: center; }
.section-heading h2 { margin: 9px 0 8px; color: #eadcc1; font-size: clamp(31px, 3.3vw, 56px); letter-spacing: .12em; text-shadow: 0 5px 18px #000; }
.section-heading > span { color: #897e6c; font-size: 13px; letter-spacing: .14em; }
.world-grid { position: relative; z-index: 2; width: min(1180px, 88%); display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; margin-top: 115px; }
.world-image { min-height: 480px; }
.world-image .art-frame { width: 100%; height: 480px; }
.world-copy .chapter { color: var(--gold); letter-spacing: .32em; font: 10px/1 Arial; }
.world-copy h3 { color: #e5d6bb; font-size: 31px; line-height: 1.45; letter-spacing: .08em; }
.world-copy > p:not(.chapter) { color: #8f8575; line-height: 2; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { color: var(--gold-bright); font: 800 25px/1 Arial; }
.stats span { margin-top: 7px; color: #786e5d; font-size: 10px; }

.benefits { flex-direction: column; background: radial-gradient(circle at 50% 45%, #263024 0, #10140f 40%, #060806 78%); }
.reward-list { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: min(1120px, 92%); margin-top: 105px; }
.reward-list article { position: relative; padding: 12px 12px 25px; text-align: center; border: 1px solid rgba(202,168,106,.25); background: linear-gradient(180deg, rgba(29,34,25,.92), rgba(8,10,8,.96)); }
.reward-list article::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(202,168,106,.09); pointer-events: none; }
.reward-number { position: absolute; z-index: 2; left: 15px; top: 14px; color: #5d594b; font: 700 12px/1 Arial; }
.reward-image { height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(177,142,72,.22), transparent 67%); }
.reward-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reward-image b { font-size: 76px; color: #c9a963; text-shadow: 0 0 28px rgba(202,169,99,.35); }
.reward-image small { color: #665e50; font-size: 9px; letter-spacing: .15em; }
.reward-list p { color: #82745e; font-size: 10px; letter-spacing: .28em; }
.reward-list h3 { color: #e8d9bd; font-size: 18px; letter-spacing: .12em; }
.primary-cta.green { z-index: 3; margin-top: 25px; background: linear-gradient(135deg, #143e28, #78df9f 48%, #164d31); color: #061b0e; }

.classes { flex-direction: column; min-height: max(100svh, 900px); padding-top: 205px; }
.classes .section-heading { top: 105px; }
.class-stage { position: relative; z-index: 3; width: min(1100px, 91%); height: 480px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; margin-top: 20px; border: 1px solid rgba(202,168,106,.16); background: linear-gradient(90deg, rgba(22,19,14,.38), rgba(7,7,6,.88)); }
.class-portrait { position: relative; height: 100%; overflow: hidden; background: radial-gradient(circle at 50% 40%, var(--tone, #8d6a35), transparent 60%); }
.class-portrait > img { width: 100%; height: 100%; object-fit: contain; display: block; animation: portraitIn .45s both; }
.class-portrait.gold { --tone: rgba(186,142,64,.33); }.class-portrait.red { --tone: rgba(137,45,34,.36); }
.class-portrait.green { --tone: rgba(55,112,65,.36); }.class-portrait.blue { --tone: rgba(49,91,138,.38); }
.class-portrait.purple { --tone: rgba(92,55,128,.4); }.class-portrait.orange { --tone: rgba(154,76,27,.4); }
.class-portrait.cyan { --tone: rgba(43,126,129,.34); }.class-portrait.steel { --tone: rgba(96,105,113,.38); }
.portrait-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: portraitIn .45s both; }
.portrait-placeholder b { font-size: 180px; color: rgba(232,215,179,.34); filter: drop-shadow(0 20px 15px #000); }
.portrait-placeholder span { color: #8d7f68; letter-spacing: .2em; }
.portrait-placeholder small { margin-top: 6px; color: #5f5648; font-size: 10px; }
.class-card { padding: 40px 55px 40px 25px; animation: cardIn .4s both; }
.class-card > p:first-child { color: var(--gold); letter-spacing: .3em; font-size: 10px; }
.class-card h3 { margin: 10px 0; color: #f0dfbf; font-size: 54px; letter-spacing: .15em; }
.class-card .ornament { width: 180px; margin: 16px 0; }
.class-description { color: #958a78; font-size: 13px; line-height: 2; }
.class-skills { display: grid; gap: 11px; margin-top: 22px; }
.class-skills span { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; color: #706757; font-size: 9px; }
.class-skills span::after { content: ""; grid-column: 2; grid-row: 1; height: 3px; background: #29251e; }
.class-skills i { position: relative; z-index: 1; grid-column: 2; grid-row: 1; height: 3px; background: linear-gradient(90deg, #72552b, #e7cb8f); }
.class-arrow { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 52px; height: 80px; border: 1px solid var(--line); background: rgba(7,7,6,.7); color: var(--gold); font: 200 45px/1 serif; cursor: pointer; transition: .2s; }
.class-arrow:hover { background: rgba(202,168,106,.14); color: #fff1d0; }
.class-arrow.prev { left: -70px; }.class-arrow.next { right: -70px; }
.class-tabs { position: relative; z-index: 4; display: flex; width: min(980px, 90%); height: 64px; margin-top: -1px; }
.class-tabs button { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; border: 1px solid rgba(202,168,106,.15); background: #0b0a08; color: #635b4e; cursor: pointer; }
.class-tabs button.active { color: #f1d89d; border-color: #9d7a41; background: linear-gradient(#2d2518, #12100c); }
.class-tabs b { font-size: 19px; }.class-tabs span { font-size: 9px; }

.features { flex-direction: column; background: radial-gradient(circle at center, #211b13, #080706 70%); }
.feature-grid { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; width: min(1180px, 92%); margin-top: 105px; }
.feature-grid article { position: relative; min-height: 350px; padding: 10px 10px 25px; text-align: center; border: 1px solid rgba(202,168,106,.23); background: #0d0c09; overflow: hidden; }
.feature-grid article > span { position: absolute; z-index: 2; left: 19px; top: 20px; color: #dbc28c; font: 700 12px Arial; }
.feature-placeholder { height: 245px; display: grid; place-items: center; color: #605744; font-size: 10px; letter-spacing: .14em; background: radial-gradient(circle, rgba(162,112,46,.26), transparent 60%), linear-gradient(135deg, #17140f, #090806); transition: transform .4s; }
.feature-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-grid article:hover .feature-placeholder { transform: scale(1.04); }
.feature-grid h3 { color: #e6d5b7; letter-spacing: .12em; font-size: 17px; }
.feature-grid p { color: #766e61; font-size: 11px; }

.start { text-align: center; flex-direction: column; padding-left: 180px; }
.start-art { position: absolute; inset: 0; opacity: .42; }
.start-art .art-frame { width: 100%; height: 100%; border: 0; }
.start-copy { position: relative; z-index: 3; padding: 65px 75px; background: radial-gradient(circle, rgba(10,9,7,.96), rgba(10,9,7,.65) 58%, transparent 73%); }
.start-copy h2 { margin: 15px 0; color: #f0ddba; font-size: clamp(38px, 5vw, 76px); letter-spacing: .12em; text-shadow: 0 7px 28px #000; }
.start-copy > p:not(.eyebrow) { color: #948876; letter-spacing: .08em; }
.line-button { display: flex; align-items: center; justify-content: center; gap: 14px; width: 330px; height: 80px; margin: 35px auto 0; background: linear-gradient(135deg, #00a84b, #43e17f, #049143); color: #041b0e; box-shadow: 0 15px 60px rgba(0,180,80,.2); transition: .2s; }
.line-button:hover { transform: translateY(-3px); filter: brightness(1.08); }
.line-button > b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: white; color: #08a84e; font: 900 12px Arial; }
.line-button span { text-align: left; font-size: 20px; font-weight: 900; letter-spacing: .08em; }
.line-button small { display: block; margin-top: 4px; font-size: 8px; font-weight: 500; opacity: .65; }
footer { position: absolute; z-index: 3; bottom: 18px; color: #504a40; font: 8px/1 Arial; letter-spacing: .14em; }

@keyframes scrollPulse { 0%,100% { opacity:.2; transform:scaleY(.4); transform-origin:top; } 50% { opacity:1; transform:scaleY(1); } }
@keyframes portraitIn { from { opacity:0; transform:translateX(-25px) scale(.98); } }
@keyframes cardIn { from { opacity:0; transform:translateY(15px); } }

@media (max-width: 1050px) {
  html { scroll-snap-type: y proximity; }
  .top-links { display: none; }
  .topbar { height: 68px; padding: 0 18px; }
  .brand { min-width: 0; flex: 1; }
  .brand-mark { flex-basis: 42px; width: 42px; height: 42px; }
  .brand-logo { width: 29px; height: 29px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand small { display: none; }
  .mini-cta { min-width: 170px; font-size: 11px; }
  .side-nav { left: 9px; width: 38px; }
  .side-copy { display: none; }
  .side-nav button { height: 50px; }
  .side-dot { width: 30px; height: 30px; font-size: 8px; }
  .side-line { left: 14px; }
  .panel { min-height: 100svh; padding: 90px 30px 45px 54px; }
  .section-heading { top: 92px; left: 54px; right: 25px; }
  .hero-copy { width: 70%; padding-left: 3vw; }
  .hero-art { right: -15%; width: 70%; opacity: .58; }
  .world-grid { grid-template-columns: 1fr 1fr; gap: 25px; width: 96%; }
  .reward-list { gap: 8px; }
  .reward-image { height: 150px; }
  .class-stage { width: 90%; grid-template-columns: 1fr 1fr; }
  .class-arrow.prev { left: -50px; }.class-arrow.next { right: -50px; }
  .class-card { padding: 25px; }
  .feature-grid { gap: 7px; }
}

@media (max-width: 680px) {
  .topbar { height: 62px; }
  .brand { gap: 10px; }
  .brand-mark { flex-basis: 38px; width: 38px; height: 38px; }
  .brand-logo { width: 26px; height: 26px; }
  .brand-wording b { font-size: 11px; letter-spacing: .1em; }
  .brand-wording small { font-size: 7px; letter-spacing: .1em; }
  .mini-cta { min-width: 146px; padding: 11px; font-size: 9px; }
  .panel { min-height: 100svh; height: auto; padding: 82px 18px 35px 47px; }
  .section-heading { position: relative; top: auto; left: auto; right: auto; margin-bottom: 26px; }
  .section-heading h2 { font-size: 30px; }
  .section-heading > span { font-size: 10px; }
  .hero { min-height: 100svh; }
  .hero-copy { width: 100%; padding: 0 12px; text-align: center; }
  .hero h1 { font-size: 48px; }
  .hero .ornament { margin-inline: auto; }
  .lead { font-size: 12px; }
  .hero-art { inset: 63px -40% 0 10%; width: auto; height: auto; opacity: .28; }
  .hero-art .art-frame { width: 100%; height: 85%; }
  .world { flex-direction: column; }
  .world-grid { display: flex; flex-direction: column; margin-top: 0; gap: 20px; }
  .world-image, .world-image .art-frame { min-height: 230px; height: 230px; }
  .world-copy h3 { font-size: 24px; }
  .benefits { padding-top: 80px; }
  .reward-list { grid-template-columns: repeat(2, 1fr); margin-top: 0; width: 100%; }
  .reward-image { height: 115px; }
  .reward-image b { font-size: 52px; }
  .reward-list article { padding-bottom: 12px; }
  .reward-list h3 { font-size: 13px; }
  .primary-cta.green { margin-top: 14px; height: 60px; }
  .classes { padding-top: 78px; }
  .class-stage { width: 100%; height: 440px; grid-template-columns: 1fr; margin-top: 0; }
  .class-portrait { height: 220px; }
  .portrait-placeholder b { font-size: 100px; }
  .class-card { padding: 15px 22px; }
  .class-card h3 { font-size: 32px; }
  .class-description { line-height: 1.65; font-size: 11px; }
  .class-skills { margin-top: 10px; }
  .class-arrow { width: 35px; height: 55px; top: 27%; }
  .class-arrow.prev { left: -9px; }.class-arrow.next { right: -9px; }
  .class-tabs { width: 100%; height: auto; flex-wrap: wrap; }
  .class-tabs button { flex: 0 0 25%; height: 45px; }
  .class-tabs b { font-size: 13px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; width: 100%; }
  .feature-grid article { min-height: 245px; }
  .feature-placeholder { height: 150px; }
  .feature-grid h3 { font-size: 13px; }
  .feature-grid p { font-size: 9px; }
  .start { min-height: 100svh; padding-left: 47px; }
  .start-copy { padding: 45px 10px; width: 100%; }
  .start-copy h2 { font-size: 38px; }
  .start-copy > p:not(.eyebrow) { font-size: 11px; line-height: 1.8; }
  .line-button { width: min(290px, 95%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* =========================================================
   手機廣告版面：裝置寬度 768px 以下時自動套用
   電腦版不受這段設定影響
   ========================================================= */
@media (max-width: 768px) {
  html {
    scroll-snap-type: y proximity;
    scroll-padding-top: 62px;
  }
  body {
    padding-bottom: 58px;
    -webkit-text-size-adjust: 100%;
  }

  .topbar {
    height: 62px;
    padding: 0 10px 0 14px;
    background: rgba(5,5,4,.94);
    border-bottom-color: rgba(202,168,106,.24);
  }
  .brand {
    min-width: 0;
    height: 62px;
    gap: 9px;
    flex: 1;
  }
  .brand-mark {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }
  .brand-logo {
    width: 26px;
    height: 26px;
  }
  .brand-wording b {
    font-size: 10px;
    letter-spacing: .09em;
  }
  .brand-wording small {
    margin-top: 3px;
    font-size: 7px;
    letter-spacing: .06em;
  }
  .top-links { display: none; }
  .mini-cta {
    min-width: 132px;
    padding: 11px 10px;
    font-size: 9px;
    letter-spacing: .04em;
  }

  /* 電腦版左側分頁，在手機改成底部導覽列 */
  .side-nav {
    position: fixed;
    z-index: 90;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 58px;
    transform: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    padding: 5px 4px max(5px, env(safe-area-inset-bottom));
    background: rgba(5,5,4,.96);
    border-top: 1px solid rgba(202,168,106,.28);
    backdrop-filter: blur(12px);
  }
  .side-line { display: none; }
  .side-nav button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0;
    text-align: center;
    opacity: .65;
  }
  .side-nav button:hover,
  .side-nav button.active { transform: none; opacity: 1; }
  .side-dot {
    width: 27px;
    height: 27px;
    margin: 0 auto;
    font-size: 8px;
  }
  .side-copy {
    display: block;
    margin: 3px 0 0;
    line-height: 1;
  }
  .side-copy b {
    display: block;
    font-size: 8px;
    letter-spacing: .05em;
  }
  .side-copy small { display: none; }

  .panel {
    min-height: calc(100svh - 58px);
    height: auto;
    padding: 82px 15px 42px;
    scroll-snap-align: start;
  }
  .panel::after { background-size: 24px 24px; }

  .section-heading {
    position: relative;
    z-index: 5;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    margin: 0 auto 24px;
    padding: 0 8px;
  }
  .section-heading > p {
    font-size: 9px;
    letter-spacing: .28em;
  }
  .section-heading h2 {
    margin: 7px 0;
    font-size: clamp(28px, 8.5vw, 40px);
    line-height: 1.25;
    letter-spacing: .07em;
  }
  .section-heading > span {
    display: block;
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: .06em;
  }

  /* 手機首頁：圖片滿版當背景，文字置於前景 */
  .hero {
    min-height: calc(100svh - 58px);
    justify-content: flex-end;
    align-items: flex-end;
    padding: 90px 20px 80px;
  }
  .hero::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,4,3,.08) 5%, rgba(4,4,3,.46) 42%, rgba(4,4,3,.96) 88%);
    pointer-events: none;
  }
  .hero-art {
    inset: 62px 0 0;
    width: 100%;
    height: auto;
    opacity: 1;
  }
  .hero-art > img { object-position: 64% center; }
  .hero-art > span { display: none; }
  .hero-copy {
    position: relative;
    z-index: 6;
    width: 100%;
    max-width: none;
    padding: 0;
    text-align: center;
  }
  .hero .eyebrow { font-size: 9px; letter-spacing: .3em; }
  .hero h1 {
    margin: 12px 0;
    font-size: clamp(42px, 13vw, 60px);
    line-height: 1.02;
    letter-spacing: .05em;
  }
  .hero h1 span { margin-top: 6px; }
  .hero .ornament {
    width: 210px;
    margin: 15px auto;
  }
  .lead {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: .05em;
  }
  .primary-cta {
    width: min(270px, 86vw);
    height: 64px;
    margin-top: 18px;
  }
  .scroll-hint { display: none; }

  /* 世界觀改為上下排列 */
  .world { flex-direction: column; justify-content: flex-start; }
  .world-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 0;
  }
  .world-image {
    width: 100%;
    min-height: 0;
    height: 47vw;
    max-height: 250px;
    border: 1px solid var(--line);
  }
  .world-image > span { font-size: 9px; padding: 6px 8px; }
  .world-copy { padding: 0 8px; text-align: center; }
  .world-copy .chapter { font-size: 9px; }
  .world-copy h3 { margin: 10px 0; font-size: 23px; }
  .world-copy > p:not(.chapter) { font-size: 12px; line-height: 1.8; }
  .stats { margin-top: 18px; padding-top: 16px; }
  .stats strong { font-size: 22px; }

  /* 福利卡片保持兩欄，適合手機快速掃視 */
  .benefits {
    justify-content: flex-start;
    padding-top: 80px;
  }
  .reward-list {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 0;
  }
  .reward-list article { padding: 7px 7px 13px; }
  .reward-number { left: 10px; top: 10px; font-size: 8px; }
  .reward-image { height: 35vw; max-height: 160px; }
  .reward-list p { margin: 9px 0 5px; font-size: 8px; }
  .reward-list h3 { margin: 4px 0; font-size: 13px; }
  .primary-cta.green { margin-top: 16px; }

  /* 角色區手機單欄，支援左右滑動 */
  .classes {
    min-height: calc(100svh - 58px);
    justify-content: flex-start;
    padding-top: 80px;
  }
  .classes .section-heading { top: auto; }
  .class-stage {
    width: 100%;
    height: auto;
    min-height: 500px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 270px auto;
    margin-top: 0;
    touch-action: pan-y;
  }
  .class-portrait { height: 270px; }
  .class-portrait > img { object-fit: contain; }
  .image-file-tag { font-size: 9px; padding: 6px 8px; }
  .class-card { padding: 18px 20px 22px; text-align: center; }
  .class-card h3 { margin: 5px 0; font-size: 34px; }
  .class-card .ornament { width: 150px; margin: 10px auto; }
  .class-description { margin: 8px 0; font-size: 11px; line-height: 1.65; }
  .class-skills { margin-top: 13px; text-align: left; }
  .class-arrow {
    top: 145px;
    width: 36px;
    height: 58px;
    font-size: 34px;
  }
  .class-arrow.prev { left: 0; }
  .class-arrow.next { right: 0; }
  .class-tabs {
    width: 100%;
    height: auto;
    flex-wrap: wrap;
    margin-top: 8px;
  }
  .class-tabs button {
    flex: 0 0 25%;
    height: 48px;
  }
  .class-tabs b { font-size: 14px; }
  .class-tabs span { font-size: 8px; }

  /* 特色卡片兩欄 */
  .features {
    justify-content: flex-start;
    padding-top: 80px;
  }
  .feature-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }
  .feature-grid article { min-height: 0; padding: 6px 6px 13px; }
  .feature-grid article > span { left: 11px; top: 11px; font-size: 8px; }
  .feature-placeholder { height: 34vw; max-height: 155px; }
  .feature-grid h3 { margin: 10px 0 5px; font-size: 13px; }
  .feature-grid p { margin: 4px 2px; font-size: 9px; line-height: 1.5; }

  /* 結尾 CTA */
  .start {
    min-height: calc(100svh - 58px);
    padding: 82px 18px 60px;
  }
  .start-art > span { display: none; }
  .start-copy {
    width: 100%;
    padding: 45px 12px;
  }
  .start-copy h2 {
    font-size: clamp(35px, 10vw, 48px);
    line-height: 1.25;
  }
  .start-copy > p:not(.eyebrow) { font-size: 12px; line-height: 1.8; }
  .line-button {
    width: min(315px, 92vw);
    height: 72px;
    margin-top: 25px;
  }
  .line-button span { font-size: 17px; }
  footer {
    bottom: 11px;
    width: calc(100% - 30px);
    font-size: 7px;
    line-height: 1.5;
  }
}

/* 極窄手機，避免品牌文字與右上按鈕互相擠壓 */
@media (max-width: 390px) {
  .brand-wording small { display: none; }
  .brand-wording b { font-size: 9px; }
  .mini-cta { min-width: 118px; font-size: 8px; }
  .hero { padding-inline: 14px; }
  .reward-list h3 { font-size: 12px; }
}

/* 手機橫向時避免內容被固定高度裁切 */
@media (max-width: 900px) and (orientation: landscape) {
  html { scroll-snap-type: none; }
  .panel { min-height: 620px; }
  .hero { min-height: 620px; }
}
/* =========================================================
   LOGO 顯示修正版
   放在檔案最下方，避免被前面的平板／手機設定覆蓋
   ========================================================= */
.brand-mark {
  overflow: hidden;
}

.brand-logo {
  width: 50px;
  height: 50px;
  max-width: none;
  object-fit: contain;
  transform: rotate(-45deg) scale(1.65);
  transform-origin: center;
  filter:
    drop-shadow(0 0 5px rgba(244, 217, 158, .65))
    drop-shadow(0 3px 8px rgba(0, 0, 0, .8));
}

@media (max-width: 1050px) {
  .brand-logo {
    width: 42px;
    height: 42px;
    transform: rotate(-45deg) scale(1.65);
  }
}

@media (max-width: 768px) {
  .brand-logo {
    width: 38px;
    height: 38px;
    transform: rotate(-45deg) scale(1.65);
  }
}

/* =========================================================
   最終品牌 LOGO 修正
   logo.png 本身已經是菱形，因此不再額外旋轉或裁切
   ========================================================= */
.brand {
  gap: 10px;
}

.brand-mark {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  border: 0;
  overflow: visible;
  transform: none;
  background: transparent;
  box-shadow: none;
}

.brand-logo {
  width: 64px;
  height: 64px;
  max-width: 64px;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.8));
}

/* 首頁圖片必須保持絕對定位，避免被 .numbered-image 改成 relative */
.hero-art.numbered-image {
  position: absolute;
}

@media (max-width: 1050px) {
  .brand-mark {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
    max-width: 54px;
    transform: none;
  }
}

@media (max-width: 768px) {
  .brand {
    gap: 5px;
  }

  .brand-mark {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
  }

  .brand-logo {
    width: 47px;
    height: 47px;
    max-width: 47px;
    transform: none;
  }

  .hero-art.numbered-image {
    position: absolute;
    inset: 62px 0 0;
    width: 100%;
    height: auto;
    opacity: 1;
    transform: none;
  }

  .hero-art.numbered-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 64% center;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(4,4,3,.04) 0%,
        rgba(4,4,3,.12) 30%,
        rgba(4,4,3,.48) 55%,
        rgba(4,4,3,.94) 84%
      );
  }
}

@media (max-width: 390px) {
  .brand-mark {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .brand-logo {
    width: 43px;
    height: 43px;
    max-width: 43px;
  }

  .brand-wording b {
    font-size: 8px;
  }
}
