/* Original-asset-inspired main story chapter overlay. Stable HUD/dock remain mounted. */
#game.rk-fixed-shell #rk-story-chapter{position:absolute;inset:93px 0 92px;z-index:57;background:#111722;color:#f2dfb5;font:14px/1.5 Tahoma,Arial,sans-serif;overflow:hidden;box-shadow:inset 0 1px 0 #a48d55}
#game.rk-fixed-shell #rk-story-chapter[hidden]{display:none!important}
#rk-story-chapter .rk-story-head{height:53px;background:linear-gradient(#111a24,#080f17);border-bottom:2px solid #b59960;display:flex;gap:10px;align-items:center;padding:3px 10px}
#rk-story-chapter .rk-story-head strong{font-size:20px;font-weight:400;color:#f9e3aa}
#rk-story-chapter .rk-story-step{margin-right:auto;font-size:11px;color:#d4bd90}
#rk-story-chapter .rk-story-back{border:0;background:transparent;font-size:30px;color:#f8d997;min-width:40px;height:43px;transform:scaleX(-1)}
#rk-story-chapter .rk-story-scroll{overflow-y:auto;overscroll-behavior:contain;height:calc(100% - 53px);background:linear-gradient(#392c2c99,#0a0e17aa),radial-gradient(circle at 60% 15%,#6a4845 0%,#1b2636 62%,#0b141d 100%);-webkit-overflow-scrolling:touch;padding-bottom:13px}
#rk-story-chapter .rk-story-hero{display:flex;direction:ltr;min-height:174px;align-items:end;position:relative;background:linear-gradient(180deg,#4c2724,#614039 34%,#1a202c);border-bottom:2px solid #bb9452;margin-bottom:3px}
#rk-story-chapter .rk-story-hero::before{content:'';position:absolute;inset:0;opacity:.23;background:repeating-radial-gradient(circle at 60% 45%,transparent,transparent 12px,#c79d6c 13px,#c79d6c 14px)}
#rk-story-chapter .rk-story-adviser{position:relative;z-index:2;width:40%;min-width:109px;height:180px;flex:none;border:0;background:transparent;cursor:pointer;padding:0}
#rk-story-chapter .rk-story-adviser img{object-fit:contain;object-position:center bottom;max-width:100%;width:100%;height:100%;filter:drop-shadow(0 4px 4px #0008)}
#rk-story-chapter .rk-story-adviser:focus-visible{outline:2px solid #f6cc72}
#rk-story-chapter .rk-story-motto{position:relative;z-index:2;display:flex;direction:rtl;flex:1;flex-direction:column;align-items:center;gap:7px;text-align:center;padding:8px 7px}
#rk-story-chapter .rk-story-speech{border-radius:10px;background:#0d121bbf;border:1px solid #d1b38588;padding:8px;font-size:12px;color:#f6ebdd}
#rk-story-chapter .rk-story-medallion{width:90px;height:78px;display:grid;place-items:center;position:relative}
#rk-story-chapter .rk-story-medallion img{height:78px;width:80px;object-fit:contain}
#rk-story-chapter .rk-story-medallion span{position:absolute;bottom:0;color:#fbe9ac;font-weight:bold}
#rk-story-chapter .rk-story-list{padding:3px 8px}
#rk-story-chapter .rk-story-row{position:relative;min-height:94px;background:linear-gradient(180deg,#252526f8,#121519f8);border-bottom:1px solid #6c624e;border-top:1px solid #3c3e3a;padding:9px 9px 6px;margin:1px 0;color:#f0e8db}
#rk-story-chapter .rk-story-row.rk-story-active{border-right:3px solid #d8ad61}
#rk-story-chapter .rk-story-row.rk-story-done{opacity:.8}
#rk-story-chapter .rk-story-row-title{font-size:14px;display:flex;align-items:center;justify-content:space-between;gap:4px}
#rk-story-chapter .rk-story-counter{color:#eb8a8a;font:13px/1.2 Tahoma;white-space:nowrap;direction:ltr}
#rk-story-chapter .rk-story-done .rk-story-counter{color:#9cdba1}
#rk-story-chapter .rk-story-row-bottom{display:flex;justify-content:space-between;gap:6px;align-items:center;margin-top:5px}
#rk-story-chapter .rk-story-rewards{display:flex;gap:5px;direction:ltr}
#rk-story-chapter .rk-story-rewards img{width:51px;height:49px;object-fit:contain;background:linear-gradient(#42633c,#23472b);border:2px ridge #b6b4a0;border-radius:3px}
#rk-story-chapter .rk-story-go{min-width:98px;padding:7px 11px;min-height:39px;border:2px ridge #9dd4dc;background:linear-gradient(#46808c,#146276);color:#f3f6f3;font:15px Tahoma;border-radius:4px;box-shadow:inset 0 0 4px #c4f6ff55}
#rk-story-chapter .rk-story-go:disabled{filter:grayscale(.7);opacity:.72}
#rk-story-chapter .rk-story-locked-note{display:block;font-size:10px;color:#e4a9a9}
#rk-story-chapter .rk-story-pointer{position:absolute;left:104px;bottom:4px;width:53px;height:70px;object-fit:contain;object-position:center center;pointer-events:none;z-index:4;transform-origin:66% 80%;transform:rotate(-73deg);filter:drop-shadow(0 2px 3px #000c);animation:rk-apk-finger-point .83s ease-in-out infinite alternate}
@keyframes rk-apk-finger-point{0%{transform:translate(0,0) rotate(-73deg) scale(1)}100%{transform:translate(-12px,-2px) rotate(-68deg) scale(.94)}}
@media(prefers-reduced-motion:reduce){#rk-story-chapter .rk-story-pointer{animation:none}}
#game.rk-story-open #rk-apk-right-actions,#game.rk-story-open #rk-apk-more,#game.rk-story-open .fab{display:none!important}
#game.rk-fixed-shell.rk-story-open #rk-guidance-ribbon{display:none!important}
body:has(#game.rk-story-open) #rok-audio-holder{display:none!important}
#dialog.overlay:not(.hidden){z-index:65!important}
@media(max-width:360px){#rk-story-chapter .rk-story-row{min-height:88px;padding:6px 7px}#rk-story-chapter .rk-story-hero{min-height:150px}#rk-story-chapter .rk-story-adviser{height:155px}#rk-story-chapter .rk-story-row-title{font-size:12px}#rk-story-chapter .rk-story-go{min-width:80px;font-size:12px}#rk-story-chapter .rk-story-rewards img{width:43px;height:44px}}
@media(max-height:650px){#game.rk-fixed-shell #rk-story-chapter{bottom:81px}}

/* Authentic reference reward IDs and quantities; visual only until claim mapping. */
#rk-story-chapter .rk-story-reward-item{position:relative;flex:0 0 auto;min-width:45px;max-width:52px;text-align:center}
#rk-story-chapter .rk-story-reward-item img{display:block;max-width:100%;height:49px;object-fit:contain}
#rk-story-chapter .rk-story-reward-item small{position:absolute;right:2px;bottom:1px;font-size:10px;color:#fff9db;background:#111b;border-radius:3px;padding:0 2px;direction:ltr}
#rk-story-chapter .rk-story-reward-unknown{display:flex;width:51px;height:49px;align-items:center;justify-content:center;border:2px solid #887354;background:#403a2f;color:#ffddb5;font-size:9px;direction:ltr}
#rk-story-chapter .rk-story-rewards{overflow-x:auto;max-width:calc(100% - 115px)}
