#igStory .sharing{background:#fff8e9;border:1px solid var(--edge);border-radius:10px;padding:clamp(16px,4vw,30px);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px}
#igStory .sharing h3{font-size:1.18rem;margin-bottom:7px}
#igStory .sharing p{margin:0}
#igStory .copy-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;max-width:290px;justify-content:flex-end;justify-self:end;align-content:start}
#igStory .copy-actions>a{margin:2px 0 0 8px;font-weight:800}
#igStory .event-details{margin:14px 0 0;display:grid;gap:8px}
#igStory .event-details>div{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.55em}
#igStory .event-details dt{color:var(--deep);font-weight:800;white-space:nowrap}
#igStory .event-details dt::after{content:"｜";display:inline-block;color:var(--edge);margin-inline-start:.14em}
#igStory .event-details dd{margin:0;overflow-wrap:anywhere}
#igStory .event-details dd span{display:inline-block}
#igStory #event-series{font-weight:750;color:var(--muted)}
#igStory #event-series span{white-space:nowrap}
#igStory .photo-gallery,#igStory .story-guide{margin-top:18px;padding:clamp(14px,3vw,28px);border:1px solid var(--edge);border-radius:10px;background:var(--light)}
#igStory .gallery-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:14px}
#igStory .gallery-heading h3,#igStory .story-guide h3{margin:0 0 3px;color:var(--deep)}
#igStory .gallery-heading p{margin:0;color:var(--muted)}
#igStory .gallery-actions,#igStory .gallery-controls{display:flex;align-items:center;gap:8px}
#igStory .gallery-actions{flex-wrap:wrap}
#igStory .gallery-controls button{gap:7px}
#igStory .gallery-arrow{width:.46em;aspect-ratio:1;border-top:2px solid currentColor;border-right:2px solid currentColor}
#igStory .gallery-arrow.is-left{transform:rotate(-135deg)}
#igStory .gallery-arrow.is-right{transform:rotate(45deg)}
#igStory .gallery-controls button:disabled{opacity:.45;cursor:default}
#igStory .gallery-track{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(185px,28vw,255px);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 12px;scrollbar-color:var(--edge) transparent}
#igStory .gallery-track:focus-visible{outline:2px solid var(--green);outline-offset:3px}
#igStory .gallery-card{min-width:0;border:1px solid var(--edge);border-radius:8px;background:var(--light);overflow:hidden;scroll-snap-align:start}
#igStory .gallery-image{display:block;width:100%;padding:0;border:0;background:#f2d7c7;cursor:zoom-in}
#igStory .gallery-image img{display:block;width:100%;aspect-ratio:4/5;object-fit:contain}
#igStory .gallery-image:focus-visible{outline-offset:-3px}
#igStory .gallery-card-details{padding:10px}
#igStory .gallery-card-details h4{margin:0 0 7px;color:var(--deep)}
#igStory .gallery-card-details a{width:100%;padding-inline:8px}
#igStory .story-guide>h3{font:900 clamp(1.35rem,3vw,2rem)/1.25 var(--serif)}
#igStory .story-steps{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:17px 0 0;padding:0}
#igStory .story-step{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:14px;padding:13px;border:1px solid var(--edge);border-radius:9px;background:#f7efd6}
#igStory .story-step:nth-child(2){background:#e9eddf}
#igStory .story-step:nth-child(3){background:#f8eee4}
#igStory .story-step h4{display:flex;align-items:center;gap:8px;margin:0 0 5px;font:900 clamp(1.05rem,2.2vw,1.35rem)/1.3 var(--serif)}
#igStory .story-step p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.55;overflow-wrap:anywhere}
#igStory .step-number{flex:none;display:grid;place-items:center;width:1.7em;aspect-ratio:1;border-radius:50%;background:var(--red);color:var(--light)}
#igStory .story-phone{position:relative;display:grid;place-items:center;width:66px;height:102px;border:2px solid var(--ink);border-radius:12px;background:var(--pink);color:var(--deep)}
#igStory .story-step:first-child .story-phone{background:var(--light)}
#igStory .phone-frame{position:absolute;inset:7px;border:1.5px dashed var(--red);border-radius:5px}
#igStory .story-step:first-child .phone-frame{inset:13px 7px 28px}
#igStory .phone-label{position:absolute;bottom:5px;max-width:100%;border-radius:3px;padding:2px;background:var(--light);font-size:.49rem;font-weight:850;line-height:1.3;white-space:nowrap}
#igStory .story-step:first-child .phone-label{background:var(--red);color:var(--light)}
#igStory .story-step:nth-child(3) .phone-label{position:static;font-size:.56rem}
#igStory .phone-camera{width:16px;height:12px;border:2px solid currentColor;border-radius:3px;position:relative;transform:translate(-3px,-5px)}
#igStory .phone-camera::after{content:"";position:absolute;left:100%;top:0;width:6px;height:8px;background:currentColor;clip-path:polygon(0 30%,100% 0,100% 100%,0 70%)}
#igStory .phone-record{position:absolute;bottom:9px;width:23px;aspect-ratio:1;border:3px solid var(--light);border-radius:50%;background:var(--red)}
#igStory .phone-sticker{position:absolute;top:6px;right:6px;background:var(--light);border:1px solid currentColor;border-radius:4px;padding:0 3px;line-height:1.3}
#igStory .phone-resize{font-size:1.45rem;line-height:1}
.asset-dialog{width:min(580px,calc(100% - 24px));max-height:92dvh;padding:12px;border:1px solid var(--edge);border-radius:11px;background:var(--light);color:var(--ink)}
.asset-dialog::backdrop{background:#291311bd}
.dialog-bar,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:9px}
.dialog-bar h3{margin:0}
.asset-dialog img{display:block;max-width:100%;max-height:62dvh;margin:10px auto;object-fit:contain;background:#f2d7c7}
.dialog-actions{justify-content:center;flex-wrap:wrap}

.game-header .island-brand-logo { display: block; width: clamp(106px, 17vw, 170px); height: auto; }
.welcome-title h1 { text-wrap: balance; }
#igStory, .asset-dialog {
  --edge: #d8aaa4;
  --light: #fff7e8;
  --deep: #782a3f;
  --muted: #72464a;
  --red: #91384e;
  --pink: #f5d9de;
  --green: #4a7570;
  --serif: 'Noto Serif TC', serif;
}
#igStory { margin: 36px 0; padding: clamp(14px, 4vw, 35px); background: #fff0d8; border: 1px solid #e1bcb0; border-radius: 20px 13px 20px 13px; }
#igStory .material-heading h2 { font-size: clamp(22px, 3.5vw, 34px); line-height: 1.3; margin: 6px 0 16px; }
#igStory .outline, .asset-dialog .outline {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  text-decoration: none; border: 1px solid var(--edge); border-radius: 8px;
  background: var(--light); color: var(--deep); padding: 7px 12px; font-weight: 650;
}
#igStory .copy-actions a:not(.primary) { color: var(--deep); }
#igStory .gallery-arrow { width: 20px; height: 20px; background: url('assets/materials/rice-bowl.png') center / contain no-repeat; border: 0; }
#igStory .gallery-arrow.is-left { transform: rotate(-12deg); }
#igStory .gallery-arrow.is-right { transform: rotate(12deg); }
#igStory :is(.gallery-image, .gallery-image img) { border-radius: 0; }
#igStory :is(#materials-copy-status, #share-all-status):empty { margin: 0; }
#igStory #materials-copy-status:not(:empty) { margin: 10px 0 0; color: var(--deep); font-weight: 700; }
.asset-dialog { position: fixed; margin: auto; overflow: auto; }
.asset-dialog:not([open]) { display: none; }
@media (max-width: 760px) {
  #igStory .sharing { grid-template-columns: 1fr; gap: 12px; }
  #igStory .copy-actions { justify-content: flex-start; justify-self: start; max-width: none; }
  #igStory .story-steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  #igStory .gallery-controls { flex-wrap: wrap; }
  #igStory .copy-actions>a { margin-left: 0; }
}
