/* The Road: the Journey (home), its illustrated worlds, the map, intro cards and the results screen */

/* ---------------------------------------------------------------- nav */
.nav button.fresh svg { animation: navfresh 1.2s ease-in-out infinite alternate; }
@keyframes navfresh { from { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 #ffd23f); } to { transform: translateY(-3px) scale(1.12); filter: drop-shadow(0 0 5px #ffd23f); } }

/* ---------------------------------------------------------------- home */
.home .topbar .chip { padding: 3px 8px 3px 4px; font-size: 13px; }
.home .topbar .chip svg { width: 20px; height: 20px; }
.homescroll { padding-bottom: 58px; }
.homecards { display: grid; gap: 8px; }
.homecards > * { margin-top: 0 !important; }
.homecards .dailycard, .homecards .goalscard { padding: 8px 10px; border-radius: 16px; box-shadow: 0 4px 0 var(--ink); }
.homecards .dailycard .dic, .homecards .goalscard .gic { width: 38px; height: 38px; border-radius: 11px; }
.homecards .dailycard .dic svg, .homecards .goalscard .gic svg { width: 28px; height: 28px; }
.homecards .dailycard .h, .homecards .goalscard .h { font-size: 15.5px !important; }
.homecards .streakpill { font-size: 22px; min-width: 40px; }
#app .homescroll > [data-encslot]:not(:empty) + *, .homescroll .eventbanner { margin-top: 8px; }
.homescroll > .homecards { margin-top: 2px; }
.homescroll .callout { margin-top: 10px; }
/* the purse (denarii and manna) and the Today row: Daily Bread, goals, events, Fellowship */
.home .topbar .purse { display: flex; gap: 5px; flex: none; }
.todayrow { flex: none; display: flex; gap: 6px; padding: 0 14px 6px; }
.tpill { flex: 1 1 0; max-width: 200px; position: relative; display: flex; align-items: center; gap: 5px; min-width: 0; height: 40px; padding: 0 6px 0 4px; background: #fff; border: 3px solid var(--ink); border-radius: 13px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; color: var(--ink); text-align: left; }
.tpill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.tpill .ti { width: 26px; height: 26px; flex: none; display: grid; place-items: center; }
.tpill .ti svg { width: 26px; height: 26px; }
.tpill .tt { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.tpill .tt b { font: 900 10.5px/1.1 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpill .tv { display: flex; align-items: center; gap: 2px; font: 400 15px/1.1 var(--head); white-space: nowrap; }
.tpill .flame svg { width: 12px; height: 15px; display: block; margin-top: -1px; }
.tpill .tok { width: 15px; height: 15px; margin-left: 2px; display: inline-grid; place-items: center; background: #7ae582; border: 2px solid var(--ink); border-radius: 50%; }
.tpill .tok svg { width: 10px; height: 10px; }
.tpill.tdaily.due { background: linear-gradient(#fff7cc, #ffe7a0); }
.tpill.tdaily.done { background: #f1fbef; }
.tpill.tgoals.claim { background: linear-gradient(#fff, #ffe6ee); animation: callglow2 1.4s ease-in-out infinite alternate; }
.tpill.tdaily { flex-grow: 1.35; }
.tpill.tfellow { flex: 0 0 auto; width: 48px; padding: 0; justify-content: center; }
.tpill.tfellow .tt { display: none; }
.tpill.tevent { background: color-mix(in srgb, var(--c) 22%, #fff); }
.tpill .nbadge { top: -8px; right: -6px; }
@media (max-width: 370px) { .todayrow { gap: 4px; padding: 0 10px 6px; } .tpill { gap: 3px; padding: 0 4px 0 2px; } .tpill .ti, .tpill .ti svg { width: 22px; height: 22px; } .tpill .tt b { font-size: 10px; } .tpill.tfellow { width: 42px; } }
/* An event adds a fourth pill: pack the row the same way a narrow phone does, or "Christmas" is cut to "Christ…". */
.todayrow:has(.tevent) { gap: 4px; padding: 0 10px 6px; }
.todayrow:has(.tevent) .tpill { gap: 3px; padding: 0 4px 0 2px; }
.todayrow:has(.tevent) .tpill .ti, .todayrow:has(.tevent) .tpill .ti svg { width: 22px; height: 22px; }
.todayrow:has(.tevent) .tpill .tt b { font-size: 10px; }
.todayrow:has(.tevent) .tpill.tfellow { width: 42px; }
/* the hero page's outfit button (scrolls to the wardrobe) */
.herostage .outfitbtn { position: absolute; left: 6px; top: 6px; z-index: 2; display: flex; align-items: center; gap: 3px; padding: 3px 7px 3px 4px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 2px 0 var(--ink); font: 900 11px/1 var(--body); color: var(--ink); cursor: pointer; }
.herostage .outfitbtn svg { width: 14px; height: 14px; }
/* a move's numbers (hero page and battle move sheet): "44 damage to one enemy · Shield 57 on self for 2 rounds" */
.mnums { display: block; margin-top: 3px; font: 900 11.5px/1.3 var(--body); color: #1b6b3a; }
.mvbtn.off .mnums { color: #5b7a66; }
/* the reader's "I've read it": a tap before it's ready lands on the catcher, which says why */
.gatewrap { position: relative; display: flex; min-width: 0; }
.gatewrap .gatebtn { flex: 1; }
.gatecatch { position: absolute; inset: 0; z-index: 1; background: transparent; border: 0; padding: 0; cursor: pointer; }
.voicesel { font-size: 14px; padding: 9px 10px; }
.worldwrap { position: relative; margin-top: 12px; padding: 0; overflow: hidden; background: #9fd66f; }
/* The dungeon's plaque is chrome: it stays above the walking crowd (.rk-partytop, z-index 7) and its effects, or the
   crowd's "You" label covers the passage and the 0/7 count when You stand at the dungeon's first stage. */
.worldwrap .worldhead { position: absolute; left: 0; right: 0; top: 0; z-index: 9; display: flex; align-items: flex-start; gap: 6px; padding: 10px 10px 0; pointer-events: none; }
.worldhead > * { pointer-events: auto; }
.worldhead .wplaque { max-width: 68%; background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); padding: 5px 10px 6px; }
.worldhead .wplaque b { display: block; font: 400 17px/1.05 var(--head); }
.worldhead .wplaque span { display: block; font: 900 11px/1.2 var(--body); color: var(--muted); margin-top: 1px; }
.mapbtn { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 54px; padding: 4px 6px 5px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; font: 400 12px/1 var(--head); }
.mapbtn svg { width: 28px; height: 28px; }
.mapbtn.small { min-width: 64px; }
.mapbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

.map.world { max-width: none; }
.map.world .worldbg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.map.world .node { z-index: 3; }
.map.world .node .lab { box-shadow: 0 2px 0 var(--ink); }
.map.world .node.locked .disc { background: #e7e1ef; }
.map.world .node.locked .lab { background: rgba(255,255,255,.88); }
.wfoe { position: absolute; transform: translate(-50%, -60%); z-index: 2; pointer-events: none; animation: wfoebob 2.2s ease-in-out infinite alternate; filter: drop-shadow(0 3px 0 rgba(29,20,32,.25)); }
.wfoe svg { width: 100%; height: 100%; overflow: visible; }
.wfoe::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -4px; height: 7px; border-radius: 50%; background: rgba(29,20,32,.18); z-index: -1; }
.wfoe.beaten { opacity: .45; filter: grayscale(.6); animation: none; }
@keyframes wfoebob { from { transform: translate(-50%, -60%); } to { transform: translate(-50%, -68%) rotate(-3deg); } }
.wyou { position: absolute; width: 34px; height: 50px; transform: translate(-50%, -55%); z-index: 4; pointer-events: none; animation: wyouhop 1s ease-in-out infinite alternate; }
.wyou svg { width: 100%; height: 100%; overflow: visible; }
@keyframes wyouhop { from { transform: translate(-50%, -55%); } to { transform: translate(-50%, -63%); } }
.worldbg .wbob { animation: wsvgbob 1.8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.worldbg .wrock { animation: wsvgrock 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.worldbg .wshim { animation: wshim 2s ease-in-out infinite alternate; }
.worldbg .wjump { animation: wjump 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.worldbg .wflame { animation: wflame .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.worldbg .wtwinkle { animation: wtwinkle 1.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.worldbg .wcloud { animation: wcloud 22s linear infinite alternate; }
.worldbg .wbirds { animation: wbirds 18s linear infinite; }
@keyframes wsvgbob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes wsvgrock { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes wshim { from { opacity: .35; } to { opacity: 1; } }
@keyframes wjump { 0%, 70%, 100% { transform: translate(0, 10px) scale(0); opacity: 0; } 78% { transform: translate(-6px, -8px) rotate(-30deg) scale(1); opacity: 1; } 88% { transform: translate(6px, -6px) rotate(40deg) scale(1); opacity: 1; } }
@keyframes wflame { from { transform: scale(1, 1); } to { transform: scale(.9, 1.12); } }
@keyframes wtwinkle { from { transform: scale(.9); } to { transform: scale(1.08) rotate(8deg); } }
@keyframes wcloud { from { transform: translateX(-16px); } to { transform: translateX(26px); } }
@keyframes wbirds { from { transform: translateX(-140px); } to { transform: translateX(300px); } }

.continuebar { flex: none; padding: 8px 14px 10px; background: linear-gradient(rgba(189,241,255,0), #bdf1ff 30%); margin-top: -12px; position: relative; z-index: 6; }
.continuebtn { width: 100%; justify-content: flex-start; padding: 8px 12px 8px 8px; gap: 10px; background: var(--gold); border-radius: 18px; }
.continuebtn .cicon { width: 44px; height: 44px; flex: none; border: 3px solid var(--ink); border-radius: 13px; background: #fff; display: grid; place-items: center; }
.continuebtn .cicon svg { width: 28px; height: 28px; }
/* The World Map button: a folded map floating at the bottom right of the Journey, above Continue (small before the map opens). */
.worldmapbtn { position: absolute; right: 12px; bottom: calc(100% - 2px); display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 8px 6px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; font: 400 12.5px/1 var(--head); color: var(--ink); }
.worldmapbtn svg { width: 46px; height: 38px; display: block; }
.worldmapbtn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.worldmapbtn.small { padding: 3px 5px 4px; border-radius: 13px; font-size: 9.5px; box-shadow: 0 3px 0 var(--ink); }
.worldmapbtn.small svg { width: 32px; height: 27px; }
/* Say the state in words. The medal's picture is the world's own landscape — green fields, sand
   desert — so colour alone reads as progress when it isn't: a finished desert world looked yellow
   and a finished Galilee world looked green. */
.mstate { display: inline-block; font: 900 8.5px/1 var(--body); letter-spacing: .06em; border: 1.5px solid var(--ink); border-radius: 5px; padding: 2px 4px; margin-right: 4px; vertical-align: 1px; }
.mstate.done { background: var(--green); color: #14400f; }
.mstate.here { background: var(--gold); color: #4a3200; }
.mappeek { margin-top: 4px; background: linear-gradient(#fff, #e9f6ff) !important; }
.worldpreview .previewhead { margin-top: 4px; border-top: 8px solid var(--c); }
.worldpreview .previewblurb { font-weight: 700; margin-top: 6px; line-height: 1.4; }
.cantfight { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 8px 12px; background: #1d1420; color: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 rgba(29,20,32,.35); }
.cantfight .cfic { width: 26px; height: 26px; flex: none; background: #fff; border-radius: 8px; display: grid; place-items: center; }
.cantfight .cfic svg { width: 20px; height: 20px; }
.cantfight b { display: block; font: 400 17px/1.1 var(--head); color: #ffd23f; }
.cantfight small { display: block; font: 800 11.5px/1.3 var(--body); color: #e9e2f2; }
.worldwrap.preview .node { cursor: default; }
.continuebtn small { display: block; font: 900 11.5px/1.1 var(--body); color: #6a4a00; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continuebtn b { display: block; font: 400 20px/1.05 var(--head); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continuebtn .go { width: 30px; height: 30px; flex: none; display: grid; place-items: center; transform: rotate(180deg); }
.continuebtn .go svg { width: 26px; height: 26px; }
.continuedone { display: flex; gap: 10px; align-items: center; padding: 8px 12px; }

/* intro cards for parts of the game that just appeared */
.featurecard { text-align: center; }
.featurecard .fic { width: 76px; height: 76px; margin: 2px auto 8px; border: 3px solid var(--ink); border-radius: 22px; background: radial-gradient(circle, #fffbe0, #ffd23f); box-shadow: 0 4px 0 var(--ink); display: grid; place-items: center; animation: ficpop .5s cubic-bezier(.34,1.56,.64,1) both; }
.featurecard .fic svg { width: 50px; height: 50px; }
.featurecard .fnew { color: #8a2be2; letter-spacing: .08em; font-weight: 900; }
.featurecard p { font-weight: 800; line-height: 1.45; margin: 8px 0 14px; }
@keyframes ficpop { from { transform: scale(.3) rotate(-20deg); } to { transform: scale(1) rotate(0); } }

/* stage sheet */
.stagetips { margin-top: 10px; background: #fff1f1 !important; }
.stagetips .tips { font-size: 14px; line-height: 1.4; }
.rewardspanel { margin-top: 12px; }
.droprow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.droptile { width: calc(25% - 4.5px); flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 3px 4px; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 0 2px 0 var(--ink); text-align: center; cursor: default; font: inherit; color: var(--ink); }
button.droptile { cursor: pointer; }
.droprow .droptile { position: relative; padding-top: 9px; }
.droptile .odds { position: absolute; top: -7px; right: -5px; z-index: 1; font: 900 10px/1 var(--body); font-style: normal; color: var(--ink); background: #ffe28a; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 5px; white-space: nowrap; box-shadow: 0 1px 0 var(--ink); }
.droptile .odds.rare { background: #e9d8ff; }
.droprow { padding-top: 6px; }
.dropnotes { margin-top: 8px; line-height: 1.35; }
.droptile .dic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; }
.droptile .dic svg { width: 100%; height: 100%; }
.droptile.rare .dic, .droptile.epic .dic, .droptile.legendary .dic { background: color-mix(in srgb, var(--rc) 22%, #fff); box-shadow: inset 0 0 0 2px var(--rc); }
.droptile.hero .dic { border: 2px solid var(--ink); overflow: hidden; }
.droptile b { font: 400 11.5px/1.05 var(--head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.droptile small { font: 900 9.5px/1 var(--body); color: var(--rc, var(--muted)); text-transform: uppercase; letter-spacing: .03em; }

/* ---------------------------------------------------------------- the map */
.mapscreen .scroll { padding-bottom: 16px; }
.mapintro { margin-top: 4px; background: linear-gradient(#fffbe0, #ffe28a) !important; }
.sidequests { display: flex; gap: 8px; margin-top: 10px; }
.sidequests .sq { flex: 1; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 16px; box-shadow: 0 4px 0 var(--ink); }
.sq .sqic { width: 38px; height: 38px; flex: none; border: 2.5px solid var(--ink); border-radius: 11px; display: grid; place-items: center; }
.sq .sqic svg { width: 26px; height: 26px; }
.sq b { display: block; font-size: 15px; line-height: 1.05; }
.sq small { display: block; font: 900 11px/1.2 var(--body); color: var(--muted); }
.bigmap { position: relative; margin-top: 12px; overflow: hidden; padding: 0; background: #bfe8ff; }
.bigmap .worldbg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.mapnode { position: absolute; transform: translate(-50%, -50%); width: 150px; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.mapnode .medal { position: relative; width: 108px; height: 108px; border-radius: 50%; background: #fff; box-shadow: 0 5px 0 var(--ink); }
.mapnode .medal > svg { width: 100%; height: 100%; display: block; }
.mapnode.cleared .medal { box-shadow: 0 5px 0 var(--ink), 0 0 0 6px #ffd23f, 0 0 26px 10px rgba(255,226,120,.95); animation: mapglow 2.4s ease-in-out infinite alternate; }
.mapnode.next .medal { box-shadow: 0 5px 0 var(--ink), 0 0 0 6px #fff, 0 0 0 9px var(--ink); animation: mapnext 1.1s ease-in-out infinite; }
.mapnode.locked .medal { background: radial-gradient(circle at 50% 40%, #efe9f7, #b9aecb); border: 4px solid var(--ink); }
.mapnode.locked .medal > svg.sil { filter: brightness(0); opacity: .62; }
.mbadge { position: absolute; right: -4px; top: -4px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; }
.mbadge svg { width: 20px; height: 20px; }
.mbadge.ok { background: var(--green); }
.mbadge.lock { background: #d8d0e4; }
.mlabel { margin-top: 9px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); padding: 4px 8px 5px; max-width: 160px; text-align: center; }
.mlabel small { display: block; font: 900 10px/1.1 var(--body); color: var(--muted); letter-spacing: .02em; }
.mlabel b { display: block; font: 400 14.5px/1.05 var(--head); }
.mlabel em { display: block; font: 800 10.5px/1.15 var(--body); font-style: normal; color: var(--ink2); }
.mapnode.next .mlabel { background: var(--gold); }
.mapnode.locked .mlabel { background: rgba(236,230,245,.92); color: #6b5f80; }
.mapnode.locked .mlabel b { color: #5a4f6e; }
.mflag { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 4px; white-space: nowrap; background: var(--ink); color: #fff; font: 400 13px/1 var(--head); padding: 3px 9px 3px 3px; border-radius: 999px; animation: mflag 1s ease-in-out infinite alternate; }
.mflag i { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: #ffe28a; border: 2px solid #fff; }
.mflag i svg { width: 100%; height: 100%; }
.mflag::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
@keyframes mapglow { from { filter: brightness(1); } to { filter: brightness(1.08); } }
@keyframes mapnext { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes mflag { from { transform: translate(-50%, 0); } to { transform: translate(-50%, -4px); } }

/* ---------------------------------------------------------------- results: one screen, tap anywhere */
.results[data-results] { cursor: pointer; }
/* safe center: a short result (a story's two rewards) sits in the middle of the screen instead of leaving a
   screen-high empty band under it; a long one (XP, Fruit, tips) still starts at the top and scrolls. */
.results .rbody { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: calc(12px + var(--safe-top)) 14px 6px; display: flex; flex-direction: column; justify-content: safe center; }
.results .rbody::-webkit-scrollbar { display: none; }
.results .rtitle { font-size: 38px; line-height: 1; }
.results .rsub { font: 800 14px/1.3 var(--body); color: #fff; margin-top: 3px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.ranswers { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 2px 8px 2px 4px; font: 900 12.5px/1 var(--body); }
.ranswers svg { width: 18px; height: 18px; }
.ranswers.perfect { background: var(--green); }
.results .resultstars { margin: 6px 0 0; gap: 6px; }
.results .rstar { width: 76px; }
.results .rstar span { width: 42px; height: 42px; padding: 5px; border-width: 2.5px; box-shadow: 0 3px 0 var(--ink); }
.results .rstar b { font-size: 11px; }
/* The chest sits in its own space under the stars: room above for its lid (the lid is drawn above the chest's box),
   "Tap the chest" under it, and the title and stars stay on top of the rays. */
.results .rtitle, .results .rsub, .results .resultstars { position: relative; z-index: 2; }
.results .chestzone { box-sizing: border-box; height: auto; margin-top: 10px; padding-top: 60px; flex: none; overflow: visible; display: flex; flex-direction: column; align-items: center; }
.results .chestwrap { position: relative; left: auto; bottom: auto; width: 120px; margin-left: 0; z-index: 1; }
.results .taplabel { position: relative; top: auto; margin-top: 6px; font-size: 18px; z-index: 2; }
.results .rays { width: 380px; height: 380px; }
.results .loot { gap: 5px; margin-top: 6px; flex: none; }
.results .lootcard { width: 63px !important; padding: 5px 3px 4px; border-radius: 13px; background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.results .lootcard .ic { width: 34px; height: 34px; }
.results .lootcard .ic .pcard { width: 34px; border-width: 2px; border-radius: 8px; }
.results .lootcard .nm { font: 400 12px/1.05 var(--head); margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* A long name ("2 Mustard Seed") needs three lines at 12px and was cut to "2 Mustar…": shrink it to fit two. */
.results .lootcard .nm.long { font-size: 10.5px; letter-spacing: -.2px; }
.results .lootcard .sub { font: 900 9.5px/1.1 var(--body); margin: 1px 0 0; }
.results .lootcard.legendary { background: linear-gradient(#fff7cc, #ffd23f); }
.results .lootcard.epic { background: linear-gradient(#fff, #ecd9ff); }
.results .lootcard.rare, .results .lootcard.heroic { background: linear-gradient(#fff, #d9e8ff); }
.results .lootcard.gold { background: linear-gradient(#fffbe0, #ffe28a); }
.results .gearreveal { margin: 8px 0 0; padding: 8px 10px; border-radius: 16px; box-shadow: 0 4px 0 var(--ink); display: grid; grid-template-columns: 58px 1fr; grid-template-areas: "ic tag" "ic name" "ic trait" "btn btn"; column-gap: 10px; text-align: left; flex: none; }
.results .gearreveal .grrays { top: 36px; left: 38px; width: 260px; height: 260px; margin: -130px 0 0 -130px; }
.results .gearreveal .grtag { grid-area: tag; font-size: 12px; -webkit-text-stroke: 3px var(--ink); }
.results .gearreveal .gric { grid-area: ic; width: 56px; height: 56px; margin: 0; border-radius: 15px; border-width: 3px; align-self: center; box-shadow: 0 3px 0 var(--ink), 0 0 16px 4px rgba(255,255,255,.8); }
.results .gearreveal .gric svg { width: 38px; height: 38px; }
.results .gearreveal .grname { grid-area: name; font-size: 18px; }
.results .gearreveal .grtrait { grid-area: trait; margin: 3px 0 0; font-size: 11.5px; line-height: 1.25; padding: 3px 6px; border-width: 2px; border-radius: 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.results .gearreveal .grtrait b { font-size: 12.5px; display: inline; margin-right: 4px; }
.results .gearreveal .grverse { display: none; }
.results .gearreveal .btn { grid-area: btn; justify-self: center; margin-top: 6px; padding: 5px 10px; font-size: 13px; position: relative; }
.results .rrest { flex: none; }
.rsec { margin-top: 8px; background: rgba(255,255,255,.94); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); padding: 6px 10px 8px; color: var(--ink); }
.rhead { font: 400 14px/1 var(--head); color: var(--muted); letter-spacing: .02em; margin-bottom: 2px; }
.rxps { display: grid; gap: 4px 10px; }
.rxps.two { grid-template-columns: 1fr 1fr; }
.rxp { display: flex; gap: 7px; align-items: flex-start; padding-top: 3px; min-width: 0; }
.rxp .face { width: 32px; height: 32px; flex: none; border: 2px solid var(--ink); border-radius: 9px; overflow: hidden; background: #ffe28a; }
.rxp .face svg { width: 100%; height: 100%; }
.rxp .nm { font: 900 13px/1.1 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rxp .lv { font: 900 10.5px/1 var(--body); color: var(--muted); white-space: nowrap; }
.rxp .plus { font: 400 13px/1 var(--head); color: #2d9a2d; white-space: nowrap; }
.rxp .bar.thin { height: 8px; margin-top: 3px; }
.rxp .lvgain { font: 800 10.5px/1.25 var(--body); color: var(--ink2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rxp .lvgain .pill { font-size: 9.5px; padding: 2px 4px; vertical-align: 1px; }
.rxp .newmove { margin-top: 3px; padding: 2px 5px; font-size: 10.5px; border-width: 1.5px; border-radius: 7px; }
/* "Fruit grew": two even cards a row. Berry, name and how much it grew across the top, the growth bar under them, how far along it is at the bottom. */
.rfruit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rfr { display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: "berry name plus" "bar bar bar" "lv lv lv"; align-items: center; gap: 2px 6px; padding: 8px 8px 7px; text-align: left; background: color-mix(in srgb, var(--c) 16%, #fff); border: 2px solid var(--ink); border-radius: 14px; font: 900 13px/1.1 var(--body); cursor: pointer; color: var(--ink); min-width: 0; }
.rfr i { grid-area: berry; width: 30px; height: 30px; display: block; }
.rfr i svg { width: 100%; height: 100%; }
.rfr .rfrname { grid-area: name; min-width: 0; font-size: 12px; letter-spacing: -.2px; overflow-wrap: anywhere; }
.rfr .rfrplus { grid-area: plus; font: 400 15px/1 var(--head); color: #2d7a2d; }
.rnote { margin-top: 8px; display: flex; align-items: center; gap: 8px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); padding: 5px 10px; font: 800 12.5px/1.3 var(--body); color: var(--ink); }
.rnote > svg { width: 22px; height: 22px; flex: none; }
.rnote.join { background: #ffe28a; }
.rnote.join .pcard { width: 44px; flex: none; border-radius: 10px; box-shadow: none; border-width: 2px; }
.rnote.join b { display: block; font-size: 17px; line-height: 1.05; }
.rnote.join small { display: block; font: 800 11.5px/1.2 var(--body); }
.rnote.skim, .rnote.leave { background: #ffecec; }
.rnote.armor { background: #fff3a8; }
.rtips .tips { margin-top: 2px; font-size: 13px; line-height: 1.35; padding-left: 18px; }
.rtips .helpcard { margin-top: 5px; font: 800 11.5px/1.3 var(--body); color: var(--ink2); background: none; border: 0; box-shadow: none; padding: 0; }
.results .taphint { flex: none; text-align: center; padding: 8px 0 calc(12px + var(--safe-bottom)); font: 400 17px/1 var(--head); color: #fff; -webkit-text-stroke: 3.5px var(--ink); paint-order: stroke fill; opacity: 0; transition: opacity .3s; }
.results .taphint.on { opacity: 1; animation: taphint 1.2s ease-in-out infinite alternate; }
@keyframes taphint { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (max-height: 700px) {
  .results .rtitle { font-size: 30px; }
  .results .chestzone { padding-top: 48px; margin-top: 6px; }
  .results .chestwrap { width: 96px; }
  .results .rstar { width: 64px; }
  .results .rstar span { width: 34px; height: 34px; padding: 4px; }
  .results .lootcard { width: 60px !important; }
  .results .lootcard .ic { width: 28px; height: 28px; }
  .rsec { margin-top: 6px; padding: 4px 8px 6px; }
  .rxp .face { width: 26px; height: 26px; }
  .rxp .lvgain { -webkit-line-clamp: 1; }
  .results .gearreveal { grid-template-areas: "ic tag" "ic name" "ic btn"; }
  .results .gearreveal .grtrait { display: none; }
  .results .gearreveal .btn { justify-self: start; margin-top: 3px; }
  .results .lootcard .sub { display: none; }
}

/* goals: each row shows its reward and its own Claim button on the right */
.goalrow .greward { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; max-width: 48%; }
.goalrow .greward .chips { margin: 0; gap: 3px; justify-content: flex-end; flex-wrap: wrap; }
.goalrow .greward .chip { font-size: 11.5px; padding: 1px 6px 1px 2px; border-width: 2px; box-shadow: 0 2px 0 var(--ink); }
.goalrow .greward .chip svg { width: 16px; height: 16px; }
.goalrow .gnum { font: 400 15px/1 var(--head); }
.goalrow .claimbtn { min-width: 64px; }
.goalrow .claimed { font: 900 11px/1 var(--body); color: #2d6a4f; display: inline-flex; align-items: center; gap: 3px; }
.goalrow .claimed svg { width: 14px; height: 14px; }
.goalrow.claimable { background: #efffea; border-radius: 12px; }

/* Fellowship: Fruit levels on a profile */
.pcfruit.levels { height: auto; align-items: center; flex-wrap: wrap; gap: 3px; }
.pcfruit.levels span.fl { flex: none; width: auto; height: auto; border: 0; background: none; overflow: visible; display: inline-flex; align-items: center; gap: 0; font: 900 11px/1 var(--body); }
.pcfruit.levels span.fl svg { width: 24px; height: 24px; }

@media (prefers-reduced-motion: reduce) {
  .wfoe, .wyou, .worldbg *, .mapnode .medal, .mflag, .nav button.fresh svg, .results .taphint.on { animation: none !important; }
}

.rfr .rfrlv { grid-area: lv; display: block; font: 800 11px/1.1 var(--body); color: var(--muted); }
/* The growth bar: the whole point of "Fruit grew" is seeing how far along it is. */
.rfr .rfrbar { grid-area: bar; display: block; }
.rfr .rfrbar .bar { display: block; height: 10px; margin-top: 4px; }
