/* 幻界生存玩法大全（survival.html）圖文版：共用 library.css 頁首＋guide.css 分頁，這裡放圖文元件。
   1.7.13（使用者 2026-11-21「要有圖文解說、物品圖標、說明每個功能是幹麼的」「礦在哪、事件在哪」）。 */
.sv .px { image-rendering: pixelated; image-rendering: crisp-edges; }
.sv dd img, .sv li img, .sv p img, .sv td img, .sv .ic-inline { display: inline-block; width: 22px; height: 22px; vertical-align: -6px; margin-right: 2px; }
.sv .sec { margin-top: 40px; }
.sv .sec:first-child { margin-top: 6px; }
.sv .h2 { font: 900 26px var(--serif); color: var(--gold-hi); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.sv .h2 .no { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 16px var(--latin); color: #1b1200; background: radial-gradient(circle at 35% 30%, #fff2c8, #d29a45); }
.sv .lead { color: #9fa9d6; font-size: 15px; margin-bottom: 16px; line-height: 1.7; }
.sv .card { border-radius: 16px; background: linear-gradient(170deg, #182660, #0b1230); border: 1px solid rgba(233, 196, 124, .24); }
.sv b.hl, .sv .hl { color: var(--gold-hi); }
.sv .note { color: #9fa9d6; font-size: 14px; margin-top: 12px; line-height: 1.7; }

/* 世界一覽 */
.sv-worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sv-worlds .card { padding: 16px 18px; }
.sv-worlds h3 { font: 700 19px var(--serif); color: var(--gold-hi); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.sv-worlds p { font-size: 14px; color: #c3cbec; line-height: 1.7; }
.sv-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font: 700 12px var(--sans); white-space: nowrap; }
.sv-badge--keep { border: 1px solid #6fe0a8; color: #b9f3d6; background: rgba(95, 224, 160, .08); }
.sv-badge--reset { border: 1px solid #ff9b7a; color: #ffd0bf; background: rgba(255, 120, 90, .08); }
.sv-badge--home { border: 1px solid #7aa2ff; color: #c7d6ff; background: rgba(91, 132, 255, .1); }

/* 怎麼去／三四格說明卡 */
.sv-go { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 14px; }
.sv-go .card { padding: 18px; }
.sv-go b { display: block; font: 700 17px var(--serif); color: var(--ivory); margin: 8px 0 4px; }
.sv-go p { font-size: 14px; color: #c3cbec; line-height: 1.65; }
.sv-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(233, 196, 124, .12); border: 1px solid rgba(233, 196, 124, .4); color: var(--gold-hi); }
.sv-ic svg { width: 24px; height: 24px; }
.sv-ic img { width: 32px; height: 32px; }
.sv-go .warn, .sv-warn { background: linear-gradient(170deg, #3a1c25, #160b14); border-color: rgba(255, 140, 110, .45); }
.sv-go .warn b { color: #ffc2ae; }
.sv-go .warn .sv-ic { border-color: rgba(255, 140, 110, .6); color: #ffb59c; background: rgba(255, 120, 90, .1); }

/* 高度圖 */
.sv-depth { display: grid; grid-template-columns: 64px 1fr; padding: 52px 22px 64px 10px; }
.sv-depth__axis { position: relative; height: 500px; }
.sv-depth__axis span { position: absolute; right: 10px; transform: translateY(-50%); font: 700 12px var(--sans); color: #8f9cc3; white-space: nowrap; }
.sv-depth__plot { position: relative; height: 500px; border-left: 1px solid rgba(233, 196, 124, .35); }
.sv-depth__band { position: absolute; left: 0; right: 0; }
.sv-depth__line { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(233, 196, 124, .28); }
.sv-depth__line i { position: absolute; left: 8px; top: -18px; font-style: normal; font-size: 12px; color: #c9b27a; }
.sv-depth__cols { position: absolute; inset: 0; display: grid; }
.sv-depth__col { position: relative; }
.sv-depth__bar { position: absolute; left: 50%; width: 14px; margin-left: -7px; border-radius: 7px; }
.sv-depth__col img { position: absolute; left: 50%; width: 36px; height: 36px; margin-left: -18px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.sv-depth__col em { position: absolute; left: -4px; right: -4px; top: 100%; text-align: center; font-style: normal; font-size: 12px; line-height: 1.3; color: #dbe2fb; padding-top: 6px; }
.sv-depth__col em span { color: #8f9cc3; }
.sv-depthhint { display: none; font-size: 13px; color: #9fa9d6; margin-bottom: 8px; }
.sv-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 0 6px; font-size: 13px; color: #9fa9d6; }
.sv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sv-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* 圖鑑卡（一項一張：圖示＋在哪／工具／掉落／用途） */
.sv-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sv-item { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 18px; }
.sv-item--wide { grid-column: 1 / -1; }
.sv-item__pic { text-align: center; }
.sv-medal { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(120, 160, 255, .3), rgba(10, 16, 48, .2) 70%); box-shadow: inset 0 0 0 1.5px rgba(233, 196, 124, .45), 0 0 20px rgba(90, 130, 255, .25); }
.sv-medal img { width: 56px; height: 56px; }
.sv-medal svg { width: 40px; height: 40px; color: var(--gold-hi); }
.sv-item__pic small { display: inline-block; margin-top: 8px; padding: 1px 9px; border-radius: 999px; font: 700 11px var(--sans); border: 1px solid rgba(233, 196, 124, .5); color: var(--gold-hi); }
.sv-item h3 { font: 900 21px var(--serif); color: var(--gold-hi); margin-bottom: 8px; }
.sv-item dl, .sv-ev dl { display: grid; grid-template-columns: 58px 1fr; gap: 5px 10px; font-size: 14px; line-height: 1.65; }
.sv-item dt, .sv-ev dt { color: #8f9cc3; font-weight: 700; }
.sv-item dd, .sv-ev dd { margin: 0; color: #dbe2fb; }
.sv-item dd b, .sv-ev dd b { color: var(--gold-hi); }

/* 小格子：地形分類、晶洞、品質 */
.sv-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.sv-tiles--5 { grid-template-columns: repeat(5, 1fr); }
.sv-tiles--4 { grid-template-columns: repeat(4, 1fr); }
.sv-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.sv-tiles > div { text-align: center; padding: 10px 6px; border-radius: 12px; background: rgba(6, 10, 30, .5); border: 1px solid rgba(233, 196, 124, .14); font-size: 12.5px; color: #c3cbec; line-height: 1.5; }
.sv-tiles img { display: block; width: 38px; height: 38px; margin: 0 auto 4px; }
.sv-tiles b { display: block; color: var(--ivory); font: 700 14px var(--serif); margin-bottom: 2px; }
.sv-tiles i { font-style: normal; color: #ff9b7a; font-weight: 700; }

/* 流程 */
.sv-flow { display: flex; align-items: stretch; list-style: none; padding: 0; }
.sv-flow > li { flex: 1; padding: 16px 12px; text-align: center; }
.sv-flow > li img { display: block; width: 56px; height: 56px; margin: 0 auto 6px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.sv-flow .big { display: block; font: 900 24px var(--serif); color: var(--gold-hi); }
.sv-flow b { display: block; font: 700 16px var(--serif); color: var(--ivory); margin-top: 4px; }
.sv-flow p { font-size: 13.5px; color: #c3cbec; margin-top: 4px; line-height: 1.6; }
.sv-flow .tag { display: inline-block; margin-top: 8px; padding: 0 9px; border-radius: 999px; font: 700 11px var(--sans); }
.sv-flow .tag--s { border: 1px solid #6fe0a8; color: #b9f3d6; }
.sv-flow .tag--r { border: 1px solid #7aa2ff; color: #b8cbff; }
.sv-flow > .arr { flex: 0 0 34px; padding: 0; display: grid; place-items: center; color: var(--gold); font-size: 24px; }

/* 每週大事件 */
.sv-week { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sv-week .card { padding: 20px; }
.sv-week h3 { font: 900 22px var(--serif); margin-bottom: 4px; }
.sv-when { display: inline-block; margin-bottom: 12px; padding: 2px 12px; border-radius: 999px; font: 700 13px var(--sans); }
.sv-steps { list-style: none; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.sv-steps li { position: relative; padding: 10px 12px 10px 44px; border-radius: 10px; background: rgba(6, 10, 30, .45); font-size: 14px; color: #dbe2fb; line-height: 1.6; }
.sv-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--latin); color: #1b1200; background: radial-gradient(circle at 35% 30%, #fff2c8, #d29a45); }
.sv-steps li b { color: var(--ivory); }
.sv-rw { margin-top: 12px; font-size: 14px; color: #c3cbec; line-height: 1.7; }

/* 事件卡 */
.sv-evs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sv-ev { padding: 16px 16px 14px; }
.sv-ev h4 { font: 900 18px var(--serif); color: var(--gold-hi); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.sv-ev h4 small { flex: none; font: 700 11px var(--sans); padding: 1px 8px; border-radius: 999px; border: 1px solid; }
.sv-ev .t-s { color: #b9f3d6; border-color: #6fe0a8; }
.sv-ev .t-m { color: #ffd9b0; border-color: #e08a4c; }
.sv-ev .t-l { color: #ffc0c0; border-color: #ff7a7a; }
.sv-ev dl { grid-template-columns: 40px 1fr; gap: 3px 8px; margin-top: 10px; font-size: 13.5px; line-height: 1.6; }

/* 實拍 */
.sv-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(233, 196, 124, .38); background: #050817; box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.sv-shot img { display: block; width: 100%; height: auto; }
.sv-shot figcaption { padding: 8px 12px; font-size: 13px; color: #9fa9d6; background: rgba(10, 16, 48, .9); }
.sv-pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; }
.sv-pair--flip { grid-template-columns: 1fr 1.3fr; }
.sv-pair--flip > .sv-shot { order: 2; }
.sv-pins { position: relative; }
.sv-pin { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--latin); color: #1b1200; background: radial-gradient(circle at 35% 30%, #fff2c8, #d29a45); box-shadow: 0 0 0 3px rgba(27, 18, 0, .55), 0 0 16px rgba(248, 225, 168, .8); }

/* 表格 */
.sv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sv-table th { text-align: left; font: 700 13px var(--sans); color: var(--gold); padding: 10px 10px; border-bottom: 1px solid rgba(233, 196, 124, .3); white-space: nowrap; }
.sv-table td { padding: 9px 10px; border-bottom: 1px dashed rgba(233, 196, 124, .14); color: #dbe2fb; vertical-align: top; line-height: 1.6; }
.sv-table tbody tr:hover { background: rgba(233, 196, 124, .05); }
.sv-tablewrap { padding: 6px 14px; overflow-x: auto; }

.sv-table--c td:not(:first-child), .sv-table--c th:not(:first-child) { text-align: center; }
.sv-tt { font: 700 17px var(--serif); color: var(--gold-hi); margin: 8px 0 2px; }
.sv-more { margin-top: 12px; border-radius: 12px; background: rgba(13, 21, 56, .6); border: 1px solid rgba(233, 196, 124, .2); }
.sv-more summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--gold-hi); }
.sv-more[open] summary { border-bottom: 1px solid rgba(233, 196, 124, .15); }

/* 起始島 */
.sv-isl { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 14px; }
.sv-isl .card { padding: 14px 16px 16px; text-align: center; }
.sv-isl img { display: block; width: 100%; height: 150px; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45)); }
.sv-isl b { display: block; font: 700 18px var(--serif); color: var(--gold-hi); }
.sv-isl p { font-size: 13.5px; color: #c3cbec; line-height: 1.65; margin-top: 4px; }
.sv-isl__txt { text-align: left !important; display: flex; flex-direction: column; justify-content: center; }
.sv-badges img { width: 64px !important; height: 64px !important; }

/* 共用／分開 */
.sv-share { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.sv-share .card { padding: 18px; }
.sv-share h3 { font: 700 18px var(--serif); color: var(--gold-hi); margin-bottom: 8px; }
.sv-share ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sv-share li { padding: 4px 11px; border-radius: 9px; font-size: 14px; color: #dbe2fb; background: rgba(20, 32, 82, .75); }
.sv-share .is-split li { background: rgba(70, 30, 40, .55); }

@media (max-width: 1000px) {
  .sv-go { grid-template-columns: 1fr 1fr; }
  .sv-evs { grid-template-columns: 1fr 1fr; }
  .sv-tiles { grid-template-columns: repeat(3, 1fr); }
  .sv-tiles--4 { grid-template-columns: repeat(2, 1fr); }
  .sv-worlds { grid-template-columns: 1fr 1fr; }
  .sv-isl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .sv-items, .sv-week, .sv-evs, .sv-go, .sv-worlds, .sv-share, .sv-pair, .sv-pair--flip { grid-template-columns: 1fr; }
  .sv-pair--flip > .sv-shot { order: 0; }
  .sv-item { grid-template-columns: 64px 1fr; gap: 12px; padding: 14px; }
  .sv-medal { width: 60px; height: 60px; } .sv-medal img { width: 40px; height: 40px; }
  .sv-item dl { grid-template-columns: 48px 1fr; }
  .sv-tiles, .sv-tiles--5 { grid-template-columns: repeat(2, 1fr); }
  .sv-tiles--3 { grid-template-columns: 1fr 1fr 1fr; }
  .sv-flow { flex-direction: column; }
  .sv-flow > .arr { height: 30px; transform: rotate(90deg); flex-basis: 30px; }
  .sv-depthwrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; -webkit-overflow-scrolling: touch; }
  .sv-depth { min-width: 720px; }
  .sv-depthhint { display: block !important; }
  .sv .h2 { font-size: 22px; }
}
.sv-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: #dbe2fb; line-height: 1.65; }
.sv-list b { color: var(--ivory); }
.sv-item h3 small { margin-left: 8px; font: 700 13px var(--latin); color: var(--gold-hi); }
