:root
{
  --ink:#362d23;
  --muted:#8b7b66;
  --paper:#f7f1e5;
  --cream:#fffaf0;
  --line:#e9deca;
  --green:#2f6251;
  --green-deep:#23483c;
  --gold:#cb9a48;
  --rust:#a95739;
  --shadow:0 18px 48px #5d452117;
  font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;
  color:var(--ink);
  background:#f3ecdc;
  font-synthesis:none;
  text-rendering:optimizeLegibility
}
*
{
  box-sizing:border-box
}
body
{
  margin:0;
  min-width:320px;
  background:radial-gradient(ellipse at 12% 20%,#fff9eb 0%,transparent 30%),radial-gradient(ellipse at 92% 44%,#e8ead4 0%,transparent 29%),#f3ecdc
}
.page-shell
{
  max-width:1240px;
  margin:0 auto;
  padding:0 48px
}
.topbar
{
  height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #dfd5c3
}
.brand
{
  display:flex;
  gap:12px;
  align-items:center;
  color:inherit;
  text-decoration:none
}
.brand-mark
{
  display:grid;
  place-items:center;
  width:39px;
  height:39px;
  border:1px solid #b9a983;
  border-radius:50%;
  color:var(--green);
  font-family:"SimSun","Songti SC",serif;
  font-size:18px
}
.brand b,.brand small
{
  display:block
}
.brand b
{
  font-family:"SimSun","Songti SC",serif;
  font-size:15px;
  letter-spacing:.1em
}
.brand small
{
  font-size:8px;
  letter-spacing:.2em;
  color:#9c8d76;
  margin-top:3px
}
.season-chip
{
  font-size:11px;
  letter-spacing:.08em;
  color:#786b55;
  background:#ece4d3;
  border:1px solid #e2d7c2;
  border-radius:30px;
  padding:9px 14px
}
.season-dot,.live-dot
{
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#6e9a73;
  box-shadow:0 0 0 3px #6e9a7320;
  margin-right:7px
}
.intro
{
  padding:48px 0 32px;
  text-align:center
}
.eyebrow,.mini-label
{
  font-size:9px;
  letter-spacing:.2em;
  color:#9b865f;
  font-weight:700
}
.intro h1
{
  font-family:"SimSun","Songti SC",serif;
  font-size:clamp(38px,5vw,57px);
  line-height:1.22;
  letter-spacing:.08em;
  margin:13px 0 10px;
  font-weight:600;
  color:#2e392e
}
.mobile-break
{
  display:none
}
.intro-copy
{
  color:#817763;
  font-size:13px;
  line-height:1.9;
  margin:0
}
.game-layout
{
  display:grid;
  grid-template-columns:minmax(0,1fr) 355px;
  gap:32px;
  align-items:start
}
.map-column
{
  min-width:0
}
.map-heading
{
  height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.map-heading h2
{
  font-family:"SimSun","Songti SC",serif;
  font-size:18px;
  margin:3px 0 0;
  letter-spacing:.05em
}
.map-count
{
  font-family:Arial,sans-serif;
  color:#85755d
}
.map-count b
{
  font-size:24px;
  color:var(--green);
  font-weight:700
}
.map-count i
{
  font-style:normal;
  font-size:12px;
  margin-left:3px
}
.map-frame
{
  position:relative;
  overflow:hidden;
  width:100%;
  border:7px solid #fffaf1;
  border-radius:22px;
  box-shadow:var(--shadow);
  line-height:0;
  background:#e7cf98;
  isolation:isolate
}
.map-art
{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1024/1536;
  object-fit:contain
}
.map-vignette
{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,#41291316,transparent 14%,transparent 85%,#41291320);
  z-index:1
}
.map-markers
{
  position:absolute;
  inset:0;
  z-index:2
}
.marker
{
  position:absolute;
  transform:translate(-50%,-50%);
  width:clamp(24px,3.15vw,36px);
  height:clamp(24px,3.15vw,36px);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff8e4;
  border:2px solid #bca477;
  color:#625338;
  font-size:10px;
  font-weight:700;
  line-height:1;
  box-shadow:0 3px 7px #40270c52;
  transition:transform .25s,background .25s,border-color .25s;
  z-index:1
}
.marker.event
{
  background:#f4e5c4;
  border-color:#bd8950
}
.marker.done
{
  background:#416d59;
  border-color:#f8efd8;
  color:#fff8e4
}
.marker.finish
{
  width:clamp(29px,3.7vw,43px);
  height:clamp(29px,3.7vw,43px);
  background:#e5b94e;
  color:#4f3712;
  border:2px solid #fff2c9;
  font-size:14px
}
.marker.current
{
  z-index:3;
  transform:translate(-50%,-50%) scale(1.22);
  background:#fff;
  color:#264b3c;
  border-color:#f5ce6e;
  box-shadow:0 0 0 4px #f4d17b8c,0 5px 12px #39280c66
}
.marker.current:after
{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:50%;
  border:1px solid #fff5cc;
  animation:pulse 1.7s infinite
}
.marker .marker-glyph
{
  font-size:12px
}
.map-start-label,.map-end-label
{
  position:absolute;
  z-index:4;
  font-size:9px;
  letter-spacing:.08em;
  padding:5px 8px;
  border-radius:20px;
  background:#fff8e8ed;
  color:#694e28;
  box-shadow:0 2px 7px #3c2b1233;
  line-height:1
}
.map-start-label
{
  left:46%;
  bottom:2.7%
}
.map-end-label
{
  left:46%;
  top:5.2%;
  background:#315b47;
  color:#fff5dc
}
.map-caption
{
  position:absolute;
  z-index:4;
  right:11px;
  top:11px;
  padding:7px 10px;
  border-radius:20px;
  background:#fff8e8df;
  color:#705d40;
  font-size:9px;
  line-height:1;
  letter-spacing:.06em;
  backdrop-filter:blur(5px)
}
.caption-dot
{
  display:inline-block;
  width:6px;
  height:6px;
  background:#54806b;
  border-radius:50%;
  margin-right:5px
}
.map-legend
{
  display:flex;
  gap:20px;
  justify-content:center;
  padding:13px 0 0;
  color:#867863;
  font-size:10px
}
.map-legend span
{
  display:flex;
  gap:6px;
  align-items:center
}
.legend-dot
{
  display:block;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#416d59
}
.legend-dot.current
{
  background:#e5b94e
}
.legend-dot.event
{
  background:#bd8950
}
.play-column
{
  display:flex;
  flex-direction:column;
  gap:13px;
  padding-top:4px
}
.journey-card,.event-card,.reward-card,.rules-card
{
  border:1px solid #ece2d0;
  background:#fffaf1eb;
  border-radius:17px;
  box-shadow:0 7px 24px #5843270d
}
.journey-card
{
  padding:19px 19px 15px
}
.card-topline
{
  display:flex;
  align-items:center;
  font-size:10px;
  color:#66816a
}
.date-label
{
  margin-left:auto;
  color:#a2947c;
  font-family:Arial,sans-serif;
  font-size:10px
}
.progress-title
{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#857863;
  font-size:11px;
  margin-top:21px
}
.progress-title strong
{
  color:var(--green);
  font-size:12px
}
.progress-track
{
  height:7px;
  background:#eae2d1;
  border-radius:20px;
  margin:8px 0 7px;
  overflow:hidden
}
.progress-track span
{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,#5c8a71,#d2aa5e);
  border-radius:20px;
  transition:width .6s cubic-bezier(.2,.7,.2,1)
}
.progress-meta
{
  display:flex;
  justify-content:space-between;
  color:#a0927c;
  font-size:9px
}
.dice-zone
{
  display:flex;
  align-items:center;
  gap:14px;
  margin:22px 0 17px;
  padding:13px;
  background:#f3ecde;
  border-radius:13px;
  min-height:96px
}
.dice-wrap
{
  width:66px;
  height:66px;
  flex:0 0 66px;
  display:grid;
  place-items:center;
  background:#e8ddc8;
  border-radius:15px
}
.die
{
  width:47px;
  height:47px;
  display:grid;
  place-items:center;
  background:#fffaf0;
  border:1px solid #e3d4b5;
  border-radius:12px;
  box-shadow:0 4px 0 #cbbc9e,0 6px 10px #75634828;
  transition:transform .2s
}
.die.rolling
{
  animation:roll .72s cubic-bezier(.3,.7,.4,1)
}
.pip
{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#355d4b;
  box-shadow:-10px -10px 0 -2px #355d4b,10px -10px 0 -2px #355d4b,-10px 10px 0 -2px #355d4b,10px 10px 0 -2px #355d4b
}
.die[data-value="1"] .pip
{
  box-shadow:none
}
.die[data-value="2"] .pip
{
  box-shadow:-10px -10px 0 -2px #355d4b,10px 10px 0 -2px #355d4b
}
.die[data-value="3"] .pip
{
  box-shadow:-10px -10px 0 -2px #355d4b,10px 10px 0 -2px #355d4b,0 0 0 -2px #355d4b
}
.die[data-value="4"] .pip
{
  box-shadow:-10px -10px 0 -2px #355d4b,10px -10px 0 -2px #355d4b,-10px 10px 0 -2px #355d4b,10px 10px 0 -2px #355d4b
}
.die[data-value="5"] .pip
{
  box-shadow:-10px -10px 0 -2px #355d4b,10px -10px 0 -2px #355d4b,-10px 10px 0 -2px #355d4b,10px 10px 0 -2px #355d4b
}
.die[data-value="6"] .pip
{
  box-shadow:-10px -10px 0 -2px #355d4b,10px -10px 0 -2px #355d4b,-10px 0 0 -2px #355d4b,10px 0 0 -2px #355d4b
}
.roll-copy h3
{
  font-family:"SimSun","Songti SC",serif;
  font-size:16px;
  margin:4px 0 4px
}
.roll-copy p
{
  font-size:10px;
  color:#857863;
  line-height:1.6;
  margin:0
}
.roll-button,.confirm-redeem
{
  width:100%;
  border:0;
  border-radius:11px;
  padding:13px 14px;
  background:var(--green);
  color:#fff8e7;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:inherit;
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  cursor:pointer;
  box-shadow:0 4px 0 #1f4939;
  transition:transform .15s,background .2s,box-shadow .2s
}
.roll-button:hover,.confirm-redeem:hover
{
  background:#39745d
}
.roll-button:active,.confirm-redeem:active
{
  transform:translateY(2px);
  box-shadow:0 2px 0 #1f4939
}
.roll-button:disabled
{
  background:#9d9d84;
  box-shadow:0 4px 0 #82836d;
  cursor:not-allowed
}
.button-icon
{
  color:#e8c678
}
.button-arrow
{
  margin-left:auto;
  font-size:15px
}
.daily-note
{
  text-align:center;
  color:#a0927c;
  font-size:9px;
  margin:11px 0 0
}
.daily-note span
{
  font-size:12px;
  margin-right:3px
}
.event-card
{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px
}
.event-icon
{
  display:grid;
  place-items:center;
  flex:0 0 37px;
  width:37px;
  height:37px;
  border-radius:11px;
  background:#f3ead7;
  font-size:19px
}
.event-card h3,.reward-card h3
{
  font-family:"SimSun","Songti SC",serif;
  font-size:13px;
  margin:3px 0 3px
}
.event-card p,.reward-card p
{
  font-size:10px;
  line-height:1.65;
  color:#8b7d67;
  margin:0
}
.event-card .mini-label,.reward-card .mini-label
{
  font-size:8px
}
.reward-card
{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px
}
.reward-rosette
{
  display:grid;
  place-items:center;
  flex:0 0 37px;
  width:37px;
  height:37px;
  border-radius:50%;
  color:#9c6c25;
  background:#f0dba9;
  border:1px solid #e0bf73;
  font-size:19px
}
.reward-copy
{
  min-width:0
}
.redeem-button
{
  margin-left:auto;
  white-space:nowrap;
  border:1px solid #d4b36a;
  border-radius:8px;
  background:#f7e9c7;
  padding:8px 9px;
  color:#765625;
  font-size:10px;
  font-weight:700;
  cursor:pointer
}
.redeem-button span
{
  font-size:13px;
  margin-left:3px
}
.redeemed-tag
{
  margin-left:auto;
  white-space:nowrap;
  color:#60806a;
  background:#e7efdf;
  padding:7px 8px;
  border-radius:8px;
  font-size:9px
}
.rules-card
{
  overflow:hidden
}
.rules-card summary
{
  list-style:none;
  display:flex;
  align-items:center;
  gap:9px;
  padding:14px;
  cursor:pointer;
  font-size:11px;
  color:#74674f;
  font-weight:600
}
.rules-card summary::-webkit-details-marker
{
  display:none
}
.rules-icon
{
  font-size:14px;
  color:#a1814d
}
.summary-plus
{
  margin-left:auto;
  font-size:17px;
  color:#a0927c;
  transition:transform .2s
}
.rules-card[open] .summary-plus
{
  transform:rotate(45deg)
}
.rules-content
{
  padding:0 15px 14px;
  border-top:1px solid #eee5d6
}
.rules-content ol
{
  padding-left:17px;
  margin:12px 0;
  color:#766b58;
  font-size:10px;
  line-height:1.8
}
.rules-content li
{
  padding-left:2px;
  margin:0 0 6px
}
.security-note
{
  border-left:2px solid #c8a35c;
  padding-left:9px;
  color:#9b8761;
  font-size:9px;
  line-height:1.6;
  margin:10px 0 0
}
.storage-note
{
  text-align:center;
  font-size:9px;
  color:#a69880;
  margin:0
}
.footer
{
  display:flex;
  justify-content:space-between;
  padding:27px 0 23px;
  margin-top:22px;
  border-top:1px solid #dfd5c3;
  color:#9e907b;
  font-size:9px;
  letter-spacing:.06em
}
.modal-backdrop[hidden]
{
  display:none
}
.modal-backdrop
{
  position:fixed;
  z-index:20;
  inset:0;
  display:grid;
  place-items:center;
  padding:22px;
  background:#201b14a6;
  backdrop-filter:blur(5px)
}
.redeem-modal
{
  position:relative;
  width:min(100%,390px);
  border-radius:20px;
  background:#fff9ec;
  padding:33px 27px 24px;
  text-align:center;
  box-shadow:0 25px 80px #0004
}
.modal-close
{
  position:absolute;
  right:15px;
  top:13px;
  border:0;
  background:none;
  color:#92856d;
  font-size:25px;
  cursor:pointer
}
.modal-star
{
  display:grid;
  place-items:center;
  width:53px;
  height:53px;
  margin:0 auto 18px;
  border-radius:50%;
  background:#f0dcaa;
  color:#986d2e;
  font-size:25px
}
.redeem-modal h2
{
  font-family:"SimSun","Songti SC",serif;
  line-height:1.45;
  font-size:23px;
  letter-spacing:.05em;
  margin:9px 0 10px
}
.modal-body
{
  font-size:12px;
  color:#7d715c;
  line-height:1.9;
  margin:0 0 20px
}
.confirm-redeem
{
  justify-content:center
}
.modal-footnote
{
  color:#a4957d;
  font-size:9px;
  margin:12px 0 0
}
.toast
{
  position:fixed;
  z-index:30;
  bottom:25px;
  left:50%;
  transform:translate(-50%,20px);
  opacity:0;
  pointer-events:none;
  padding:11px 17px;
  border-radius:25px;
  background:#293e33;
  color:#fff7e6;
  font-size:11px;
  box-shadow:0 8px 24px #0003;
  transition:all .24s
}
.toast.show
{
  opacity:1;
  transform:translate(-50%,0)
}
[hidden]
{
  display:none!important
}
@keyframes roll
{
  0%
{
  transform:rotate(0) scale(1)
}
30%
{
  transform:rotate(120deg) scale(.86)
}
60%
{
  transform:rotate(260deg) scale(1.08)
}
100%
{
  transform:rotate(360deg) scale(1)
}

}
@keyframes pulse
{
  0%,100%
{
  transform:scale(.85);
  opacity:.8
}
50%
{
  transform:scale(1.2);
  opacity:.25
}

}

@media(min-width:1000px)
{
  .page-shell
{
  padding-left:64px;
  padding-right:64px
}
.intro
{
  padding-top:43px
}
.game-layout
{
  grid-template-columns:minmax(0,1fr) 355px;
  gap:40px
}
.play-column
{
  position:sticky;
  top:18px
}
.marker
{
  width:31px;
  height:31px
}
.marker.finish
{
  width:38px;
  height:38px
}

}

@media(max-width:760px)
{
  .page-shell
{
  padding:0 17px
}
.topbar
{
  height:65px
}
.brand-mark
{
  width:34px;
  height:34px
}
.season-chip
{
  font-size:9px;
  padding:8px 10px
}
.intro
{
  padding:29px 0 19px
}
.intro h1
{
  font-size:36px;
  margin:8px 0
}
.mobile-break
{
  display:block
}
.intro-copy
{
  font-size:11px
}
.game-layout
{
  display:flex;
  flex-direction:column;
  gap:15px
}
.map-column
{
  width:100%
}
.map-heading
{
  height:47px
}
.map-heading h2
{
  font-size:16px
}
.map-count b
{
  font-size:21px
}
.map-frame
{
  border-width:5px;
  border-radius:17px
}
.marker
{
  width:clamp(22px,6vw,31px);
  height:clamp(22px,6vw,31px);
  font-size:8px;
  border-width:1.5px
}
.marker.finish
{
  width:clamp(27px,7vw,36px);
  height:clamp(27px,7vw,36px);
  font-size:12px
}
.marker .marker-glyph
{
  font-size:10px
}
.map-caption
{
  font-size:8px;
  right:7px;
  top:7px
}
.map-start-label,.map-end-label
{
  font-size:8px
}
.map-legend
{
  padding:10px 0 0;
  font-size:9px;
  gap:16px
}
.play-column
{
  width:100%;
  padding-top:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}
.journey-card
{
  grid-column:1/-1;
  padding:16px
}
.dice-zone
{
  margin:16px 0 13px
}
.event-card,.reward-card
{
  min-height:92px;
  padding:11px;
  gap:8px
}
.event-icon,.reward-rosette
{
  width:32px;
  height:32px;
  flex-basis:32px;
  font-size:16px
}
.event-card h3,.reward-card h3
{
  font-size:11px
}
.event-card p,.reward-card p
{
  font-size:9px
}
.redeem-button
{
  position:absolute;
  right:10px;
  bottom:9px
}
.reward-card
{
  position:relative;
  padding-bottom:34px
}
.redeemed-tag
{
  position:absolute;
  right:9px;
  bottom:10px
}
.rules-card,.storage-note
{
  grid-column:1/-1
}
.rules-card summary
{
  padding:12px
}
.footer
{
  margin-top:16px;
  padding:19px 0;
   font-size:8px
}

}

@media(max-width:380px)
{
  .page-shell
{
  padding:0 12px
}
.season-chip
{
  font-size:8px
}
.play-column
{
  gap:8px
}
.event-card,.reward-card
{
  padding:9px
}
.redeem-button
{
  font-size:9px;
  padding:7px
}
.marker
{
  width:22px;
  height:22px
}
.marker.finish
{
  width:27px;
  height:27px
}

}


.souvenir-line
{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:9px;
  margin-top:9px;
  border-top:1px solid #e9dfce;
  color:#8b7d67;
  font-size:10px
}
.souvenir-line strong
{
  color:#9c6c25;
  font-size:10px;
  font-weight:700
}

:focus-visible
{
  outline:3px solid #d4ab5a;
  outline-offset:3px
}
.marker:focus-visible
{
  z-index:4
}

@media(prefers-reduced-motion:reduce)
{
  *,*::before,*::after
{
  scroll-behavior:auto!important;
  animation-duration:.01ms!important;
  animation-iteration-count:1!important;
  transition-duration:.01ms!important
}

}

.die .pip
{
  width:auto;
  height:auto;
  display:grid;
  grid-template-columns:repeat(3,5px);
  grid-template-rows:repeat(3,5px);
  gap:5px;
  border-radius:0;
  background:none;
  box-shadow:none
}
.die .pip i
{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#355d4b;
  visibility:hidden
}
.die[data-value="1"] .pip i:nth-child(5),.die[data-value="2"] .pip i:nth-child(1),.die[data-value="2"] .pip i:nth-child(9),.die[data-value="3"] .pip i:nth-child(1),.die[data-value="3"] .pip i:nth-child(5),.die[data-value="3"] .pip i:nth-child(9),.die[data-value="4"] .pip i:nth-child(1),.die[data-value="4"] .pip i:nth-child(3),.die[data-value="4"] .pip i:nth-child(7),.die[data-value="4"] .pip i:nth-child(9),.die[data-value="5"] .pip i:nth-child(1),.die[data-value="5"] .pip i:nth-child(3),.die[data-value="5"] .pip i:nth-child(5),.die[data-value="5"] .pip i:nth-child(7),.die[data-value="5"] .pip i:nth-child(9),.die[data-value="6"] .pip i:nth-child(1),.die[data-value="6"] .pip i:nth-child(3),.die[data-value="6"] .pip i:nth-child(4),.die[data-value="6"] .pip i:nth-child(6),.die[data-value="6"] .pip i:nth-child(7),.die[data-value="6"] .pip i:nth-child(9)
{
  visibility:visible
}


/* Game pieces live directly on the map surface. */
.map-event-marker,.map-finish-marker{position:absolute;z-index:4;transform:translate(-50%,-50%);display:grid;place-items:center;line-height:1;text-shadow:0 1px 3px #3e2b19a0;pointer-events:none}
.map-event-marker{font-size:20px;filter:drop-shadow(0 2px 2px #38230b66)}
.map-finish-marker{width:28px;height:28px;border-radius:50%;background:#d9b34f;color:#60461b;border:2px solid #fff0c5;font-size:15px;box-shadow:0 3px 8px #3d2a1550;text-shadow:none}
.player-mascot{position:absolute;z-index:7;width:clamp(43px,6.2vw,66px);height:auto;transform:translate(-50%,-82%);filter:drop-shadow(0 5px 5px #38230b67);pointer-events:none;transition:left .6s cubic-bezier(.2,.8,.2,1),top .6s cubic-bezier(.2,.8,.2,1);animation:cloud-float 2.6s ease-in-out infinite}
.player-mascot.arrived{animation:cloud-arrive .8s ease-out both}
.map-roll-control{position:absolute;z-index:9;right:12px;top:54px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0;border:0;background:transparent;box-shadow:none;color:#fff8e8;cursor:pointer}
.map-roll-control:hover,.map-roll-control:active{background:transparent;box-shadow:none;transform:translateY(-2px)}
.map-roll-control:disabled{opacity:.58;cursor:not-allowed}
.die-scene{display:block;width:66px;height:66px;perspective:420px;filter:drop-shadow(0 6px 5px #35220a70)}
.dice-cube{--half:21px;position:relative;width:42px;height:42px;margin:12px auto;transform-style:preserve-3d;transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.cube-face{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);align-items:center;justify-items:center;padding:6px;border:1px solid #d8c59f;border-radius:7px;background:linear-gradient(145deg,#fffdf5,#e5d4b0);backface-visibility:hidden}
.cube-face:before{content:"";position:absolute;inset:2px;border:1px solid #fff9e9;border-radius:5px;pointer-events:none}
.cube-face:after{content:"";width:5px;height:5px;border-radius:50%;background:#315a48;box-shadow:none;grid-area:2/2;visibility:hidden}
.cube-face.front{transform:rotateY(0) translateZ(var(--half))}.cube-face.back{transform:rotateY(180deg) translateZ(var(--half))}.cube-face.right{transform:rotateY(90deg) translateZ(var(--half))}.cube-face.left{transform:rotateY(-90deg) translateZ(var(--half))}.cube-face.top{transform:rotateX(90deg) translateZ(var(--half))}.cube-face.bottom{transform:rotateX(-90deg) translateZ(var(--half))}
.cube-face[data-value="1"]:after{visibility:visible}
.cube-face[data-value="2"]:after{grid-area:1/1;visibility:visible;box-shadow:14px 14px #315a48}
.cube-face[data-value="3"]:after{grid-area:1/1;visibility:visible;box-shadow:14px 7px #315a48,14px 14px #315a48}
.cube-face[data-value="4"]:after{grid-area:1/1;visibility:visible;box-shadow:14px 0 #315a48,0 14px #315a48,14px 14px #315a48}
.cube-face[data-value="5"]:after{grid-area:1/1;visibility:visible;box-shadow:14px 0 #315a48,7px 7px #315a48,0 14px #315a48,14px 14px #315a48}
.cube-face[data-value="6"]:after{grid-area:1/1;visibility:visible;box-shadow:14px 0 #315a48,0 7px #315a48,14px 7px #315a48,0 14px #315a48,14px 14px #315a48}
.dice-cube.result-1{transform:rotateX(-18deg) rotateY(22deg)}.dice-cube.result-2{transform:rotateX(-108deg) rotateY(22deg)}.dice-cube.result-3{transform:rotateX(-18deg) rotateY(-68deg)}.dice-cube.result-4{transform:rotateX(-18deg) rotateY(112deg)}.dice-cube.result-5{transform:rotateX(72deg) rotateY(22deg)}.dice-cube.result-6{transform:rotateX(-18deg) rotateY(202deg)}
.dice-cube.tumbling{animation:dice-tumble .85s cubic-bezier(.18,.76,.25,1) both}
.map-roll-label{font-size:10px;font-weight:700;letter-spacing:.04em;color:#fff9e8;text-shadow:0 1px 4px #291a0b,0 0 8px #291a0b;white-space:nowrap}
.map-roll-control:focus-visible{outline:3px solid #f2d07c;outline-offset:5px;border-radius:12px}
.map-legend .legend-dot.finish{background:#d9b34f}
.roll-status{margin-top:18px;padding-top:14px;border-top:1px solid #e9dfce}
.next-adventure-button{margin-top:12px;width:100%;border:1px solid #cbb77c;border-radius:9px;background:#f4e7c9;color:#705628;padding:11px 12px;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}
.next-adventure-button:hover{background:#ecdbb2}
.badge-shelf{margin:38px 0 18px;padding:25px 28px 29px;background:#eee7d9;border-radius:19px}
.badge-heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.badge-heading-row h2{margin:5px 0;font-family:"SimSun","Songti SC",serif;font-size:23px;letter-spacing:.05em}
.badge-heading-row p{margin:0;color:#827660;font-size:12px}
.badge-total{text-align:right;display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:7px}
.badge-total strong{font-size:32px;line-height:1;color:#3c6854;font-variant-numeric:tabular-nums}
.badge-total span{font-size:11px;color:#857863}
.badge-total small{grid-column:1/-1;margin-top:5px;color:#9b8761;font-size:10px}
.badge-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.badge-card{min-width:0;padding:14px 7px 12px;text-align:center;border-radius:13px;background:#f8f3e9}
.badge-art{width:70px;height:70px;margin:0 auto 6px;filter:grayscale(.82);opacity:.62;transition:filter .3s,opacity .3s,transform .3s}
.badge-card.earned .badge-art{filter:none;opacity:1;transform:translateY(-2px)}
.badge-art svg{display:block;width:100%;height:100%}
.badge-card h3{margin:0;color:#7f7564;font-family:"SimSun","Songti SC",serif;font-size:12px;font-weight:600}
.badge-card.earned h3{color:#3d5143}
.badge-card p{margin:5px 0 0;color:#a19682;font-size:9px}
.badge-card.earned p{color:#66836d}
@keyframes dice-tumble{0%{transform:translateY(0) rotateX(-18deg) rotateY(22deg) scale(1)}20%{transform:translateY(-20px) rotateX(220deg) rotateY(170deg) rotateZ(90deg) scale(1.1)}45%{transform:translateY(-10px) rotateX(510deg) rotateY(430deg) rotateZ(230deg) scale(1.2)}70%{transform:translateY(-4px) rotateX(760deg) rotateY(700deg) rotateZ(360deg) scale(1.08)}100%{transform:translateY(0) rotateX(900deg) rotateY(1080deg) rotateZ(540deg) scale(1)}}
@keyframes cloud-float{0%,100%{margin-top:0}50%{margin-top:-5px}}
@keyframes cloud-arrive{0%{scale:.75;rotate:-12deg}55%{scale:1.2;rotate:7deg}100%{scale:1;rotate:0}}
@media(max-width:760px){.map-roll-control{right:5px;top:43px}.die-scene{width:59px;height:59px}.dice-cube{--half:18px;width:36px;height:36px;margin:11px auto}.cube-face{padding:5px;border-radius:6px}.cube-face:after{width:4px;height:4px}.cube-face[data-value="2"]:after{box-shadow:12px 12px #315a48}.cube-face[data-value="3"]:after{box-shadow:12px 6px #315a48,12px 12px #315a48}.cube-face[data-value="4"]:after{box-shadow:12px 0 #315a48,0 12px #315a48,12px 12px #315a48}.cube-face[data-value="5"]:after{box-shadow:12px 0 #315a48,6px 6px #315a48,0 12px #315a48,12px 12px #315a48}.cube-face[data-value="6"]:after{box-shadow:12px 0 #315a48,0 6px #315a48,12px 6px #315a48,0 12px #315a48,12px 12px #315a48}.player-mascot{width:clamp(42px,12vw,58px)}.map-event-marker{font-size:16px}.map-finish-marker{width:24px;height:24px}.badge-shelf{margin-top:23px;padding:19px 13px 20px}.badge-heading-row{align-items:flex-start;gap:10px}.badge-heading-row h2{font-size:19px}.badge-heading-row p{max-width:220px;font-size:10px;line-height:1.6}.badge-total strong{font-size:27px}.badge-total small{max-width:140px;font-size:9px}.badge-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.badge-card{padding:10px 3px}.badge-art{width:56px;height:56px}.badge-card h3{font-size:10px}.badge-card p{font-size:8px}}
@media(max-width:390px){.badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.badge-heading-row{flex-direction:column}.badge-total{text-align:left}.badge-total small{max-width:none}}
.dice-play-area{position:relative;display:flex;align-items:center;justify-content:center;gap:22px;min-height:108px;padding:12px 16px 10px}
.map-roll-control{position:relative;top:auto;right:auto;display:flex;flex-direction:column;align-items:center;gap:2px;padding:0;border:0;background:transparent;box-shadow:none;color:#4c4130;cursor:pointer}
.map-roll-control:hover,.map-roll-control:active{background:transparent;box-shadow:none;transform:translateY(-2px)}
.map-roll-control:disabled{opacity:.55;cursor:not-allowed}
.die-scene{width:76px;height:76px;perspective:520px;filter:drop-shadow(0 7px 4px #3d2b1745)}
.dice-cube{--half:24px;width:48px;height:48px;margin:14px auto;transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.cube-face{border-radius:8px;padding:7px;background:linear-gradient(145deg,#fffdf7,#dfc99e);border-color:#cdbb96}
.cube-face:after{width:6px;height:6px;background:#315a48}
.cube-face[data-value="2"]:after{box-shadow:16px 16px #315a48}
.cube-face[data-value="3"]:after{box-shadow:16px 8px #315a48,16px 16px #315a48}
.cube-face[data-value="4"]:after{box-shadow:16px 0 #315a48,0 16px #315a48,16px 16px #315a48}
.cube-face[data-value="5"]:after{box-shadow:16px 0 #315a48,8px 8px #315a48,0 16px #315a48,16px 16px #315a48}
.cube-face[data-value="6"]:after{box-shadow:16px 0 #315a48,0 8px #315a48,16px 8px #315a48,0 16px #315a48,16px 16px #315a48}
.map-roll-label{font-size:11px;font-weight:700;letter-spacing:.04em;color:#66583f;text-shadow:none;white-space:nowrap}
.dice-result{display:flex;align-items:baseline;gap:10px;color:#8b7d67}
.dice-result span{font-size:11px}
.dice-result strong{min-width:34px;color:#315a48;font-family:"SimSun","Songti SC",serif;font-size:27px;line-height:1;font-variant-numeric:tabular-nums}
@media(max-width:760px){.dice-play-area{min-height:94px;padding:7px 12px 8px}.die-scene{width:68px;height:68px}.dice-cube{--half:21px;width:42px;height:42px;margin:13px auto}.cube-face{padding:6px}.cube-face:after{width:5px;height:5px}.cube-face[data-value="2"]:after{box-shadow:14px 14px #315a48}.cube-face[data-value="3"]:after{box-shadow:14px 7px #315a48,14px 14px #315a48}.cube-face[data-value="4"]:after{box-shadow:14px 0 #315a48,0 14px #315a48,14px 14px #315a48}.cube-face[data-value="5"]:after{box-shadow:14px 0 #315a48,7px 7px #315a48,0 14px #315a48,14px 14px #315a48}.cube-face[data-value="6"]:after{box-shadow:14px 0 #315a48,0 7px #315a48,14px 7px #315a48,0 14px #315a48,14px 14px #315a48}}
.map-end-label{left:62%;top:2.5%}


/* Traveler is centered on the source map's real circular tile centers. */
.player-mascot{width:clamp(56px,10vw,82px);transform:translate(-50%,-50%);animation:none}
.dice-play-area{position:absolute;z-index:10;left:9px;bottom:10px;display:flex;align-items:center;justify-content:flex-start;gap:1px;min-height:0;padding:0}
.map-roll-control{position:relative;top:auto;right:auto;display:flex;flex-direction:column;align-items:center;gap:0;width:72px;padding:0;border:0;background:transparent;box-shadow:none;color:#fff8e8;cursor:pointer}
.map-roll-control:hover,.map-roll-control:active{background:transparent;box-shadow:none;transform:translateY(-2px)}
.map-roll-control:disabled{opacity:.62;cursor:not-allowed}
.die-scene{width:64px;height:64px;perspective:520px;filter:drop-shadow(0 5px 4px #35220a78)}
.dice-cube{--half:20px;width:40px;height:40px;margin:12px auto}
.cube-face{border-radius:7px;padding:5px;background:linear-gradient(145deg,#fffdf7,#dfc99e);border-color:#cdbb96}
.cube-face:after{width:5px;height:5px;background:#315a48}
.cube-face[data-value="2"]:after{box-shadow:13px 13px #315a48}.cube-face[data-value="3"]:after{box-shadow:13px 6px #315a48,13px 13px #315a48}.cube-face[data-value="4"]:after{box-shadow:13px 0 #315a48,0 13px #315a48,13px 13px #315a48}.cube-face[data-value="5"]:after{box-shadow:13px 0 #315a48,6px 6px #315a48,0 13px #315a48,13px 13px #315a48}.cube-face[data-value="6"]:after{box-shadow:13px 0 #315a48,0 6px #315a48,13px 6px #315a48,0 13px #315a48,13px 13px #315a48}
.map-roll-label{font-size:10px;font-weight:700;letter-spacing:.04em;color:#fff9e8;text-shadow:0 1px 4px #291a0b,0 0 8px #291a0b;white-space:nowrap}
.dice-result{display:flex;flex-direction:column;align-items:center;gap:0;margin:0 0 8px 0;color:#fff9e8;text-shadow:0 1px 4px #291a0b,0 0 8px #291a0b}
.dice-result span{font-size:9px}.dice-result strong{min-width:24px;color:#fff9e8;font-family:"SimSun","Songti SC",serif;font-size:24px;line-height:1;font-variant-numeric:tabular-nums}
@media(max-width:760px){.player-mascot{width:clamp(48px,15vw,64px)}.dice-play-area{left:5px;bottom:7px}.map-roll-control{width:65px}.die-scene{width:58px;height:58px}.dice-cube{--half:18px;width:36px;height:36px;margin:11px auto}.cube-face{padding:5px;border-radius:6px}.cube-face:after{width:4px;height:4px}.cube-face[data-value="2"]:after{box-shadow:12px 12px #315a48}.cube-face[data-value="3"]:after{box-shadow:12px 6px #315a48,12px 12px #315a48}.cube-face[data-value="4"]:after{box-shadow:12px 0 #315a48,0 12px #315a48,12px 12px #315a48}.cube-face[data-value="5"]:after{box-shadow:12px 0 #315a48,6px 6px #315a48,0 12px #315a48,12px 12px #315a48}.cube-face[data-value="6"]:after{box-shadow:12px 0 #315a48,0 6px #315a48,12px 6px #315a48,0 12px #315a48,12px 12px #315a48}.map-roll-label{font-size:9px}.dice-result{margin-bottom:7px}.dice-result span{font-size:8px}.dice-result strong{font-size:22px}}

/* Dice faces use a real 3x3 pip layout so each result reads like a standard die. */
.cube-face:after{display:none}
.cube-face i{display:block;width:5px;height:5px;border-radius:50%;background:#315a48;box-shadow:inset 0 1px 1px #172f26;visibility:hidden;z-index:1}
.cube-face[data-value="1"] i:nth-child(5),
.cube-face[data-value="2"] i:nth-child(1),.cube-face[data-value="2"] i:nth-child(9),
.cube-face[data-value="3"] i:nth-child(1),.cube-face[data-value="3"] i:nth-child(5),.cube-face[data-value="3"] i:nth-child(9),
.cube-face[data-value="4"] i:nth-child(1),.cube-face[data-value="4"] i:nth-child(3),.cube-face[data-value="4"] i:nth-child(7),.cube-face[data-value="4"] i:nth-child(9),
.cube-face[data-value="5"] i:nth-child(1),.cube-face[data-value="5"] i:nth-child(3),.cube-face[data-value="5"] i:nth-child(5),.cube-face[data-value="5"] i:nth-child(7),.cube-face[data-value="5"] i:nth-child(9),
.cube-face[data-value="6"] i:nth-child(1),.cube-face[data-value="6"] i:nth-child(3),.cube-face[data-value="6"] i:nth-child(4),.cube-face[data-value="6"] i:nth-child(6),.cube-face[data-value="6"] i:nth-child(7),.cube-face[data-value="6"] i:nth-child(9){visibility:visible}
.dice-cube.result-2{transform:rotateX(68deg) rotateY(22deg)}
.dice-cube.result-5{transform:rotateX(-68deg) rotateY(22deg)}
.player-mascot{will-change:left,top}
.player-mascot.moving{animation:traveler-hop .48s ease-out}
@keyframes traveler-hop{0%{scale:.9}48%{scale:1.18}100%{scale:1}}
.travel-position{margin:8px 2px 0;color:#78684e;font-size:10px;letter-spacing:.02em}
@media(max-width:760px){.cube-face i{width:4px;height:4px}}

/* A rounded ivory die with bevel light, recessed pips, and a real 3D box size. */
.dice-play-area{gap:0}
.map-roll-control{width:96px}
.die-scene{display:block;width:96px;height:96px;perspective:900px;filter:drop-shadow(0 9px 5px #29190d8c)}
.dice-cube{display:block;position:relative;flex:none;width:68px;height:68px;--half:34px;margin:14px auto;}
.cube-face{width:68px;height:68px;padding:8px;border:1px solid #c7ae7e;border-radius:12px;background:linear-gradient(140deg,#fff8e3 0%,#f0dfbd 50%,#d7bd8d 100%);box-shadow:inset 0 2px 5px #fffdf0,inset 0 -4px 8px #b49a6c,0 1px 2px #8f754c;}
.cube-face:before{inset:3px;border:1px solid #fff8e5;border-radius:9px;box-shadow:inset 0 1px 2px #fff8e2;}
.cube-face.front{background:linear-gradient(145deg,#fff9e8 0%,#f2e2c2 58%,#e2c999 100%)}
.cube-face.top{background:linear-gradient(145deg,#fffdf4 0%,#f8eccf 58%,#e9d5aa 100%)}
.cube-face.right{background:linear-gradient(145deg,#ead8b3 0%,#d8c092 56%,#c2a875 100%)}
.cube-face.left{background:linear-gradient(145deg,#f3e4c4 0%,#e1cea4 58%,#cdb687 100%)}
.cube-face.back{background:linear-gradient(145deg,#e7d5b0 0%,#d5c091 58%,#bfa574 100%)}
.cube-face.bottom{background:linear-gradient(145deg,#d8c497 0%,#bba474 58%,#a58d60 100%)}
.cube-face i{position:relative;width:8px;height:8px;border-radius:50%;background:radial-gradient(circle at 35% 28%,#584b36 0%,#30291f 45%,#171711 100%);box-shadow:inset 0 1.5px 2.5px #100f0a,inset 0 -1px 1px #897a59;}
.cube-face i:after{content:"";position:absolute;left:1.5px;top:1px;width:2px;height:1.5px;border-radius:50%;background:#c6b185;opacity:.65;}
.player-mascot{will-change:left,top}
.map-roll-control:disabled{opacity:1}
.map-roll-control:disabled .map-roll-label{opacity:.72}
@media(max-width:760px){.map-roll-control{width:88px}.die-scene{width:88px;height:88px;perspective:840px}.dice-cube{width:62px;height:62px;--half:31px;margin:13px auto}.cube-face{width:62px;height:62px;padding:7px;border-radius:11px}.cube-face:before{border-radius:8px}.cube-face i{width:7px;height:7px}.cube-face i:after{left:1px;top:1px}}

/* Match the reference die: glossy white body, red top pips, blue side pips. */
.cube-face{border-color:#dededb;background:linear-gradient(145deg,#fff 0%,#f8f8f6 56%,#dededb 100%);box-shadow:inset 0 3px 7px #fff,inset 0 -5px 9px #c8c8c5,0 1px 2px #858580}
.cube-face:before{border-color:#fff;background:linear-gradient(135deg,#ffffff2b,transparent 58%);box-shadow:inset 0 1px 2px #ffffffcc}
.cube-face.front{background:linear-gradient(145deg,#fff 0%,#f7f7f5 55%,#dfdfdc 100%)}
.cube-face.top{background:linear-gradient(145deg,#fff 0%,#fcfcfb 60%,#ededeb 100%)}
.cube-face.right{background:linear-gradient(145deg,#f3f3f1 0%,#dededb 56%,#c7c7c4 100%)}
.cube-face.left,.cube-face.back{background:linear-gradient(145deg,#fafaf9 0%,#e8e8e6 56%,#d2d2cf 100%)}
.cube-face.bottom{background:linear-gradient(145deg,#d7d7d4 0%,#c2c2be 60%,#a9a9a5 100%)}
.cube-face i{background:radial-gradient(circle at 34% 28%,#4b8de6 0%,#1555b5 47%,#063277 100%);box-shadow:inset 0 1px 2px #06265f,inset 0 -1px 1px #79a8ee,0 0 1px #073078}
.cube-face i:after{background:#c8e0ff;opacity:.85}
.cube-face.top i{background:radial-gradient(circle at 34% 28%,#ff6758 0%,#df1e16 48%,#990d0a 100%);box-shadow:inset 0 1px 2px #8f0905,inset 0 -1px 1px #ffb0a2,0 0 1px #950b08}
.cube-face.top i:after{background:#ffd7ce}
.dice-cube.result-1,.dice-cube.result-2,.dice-cube.result-3,.dice-cube.result-4,.dice-cube.result-5,.dice-cube.result-6{transform:rotateX(-32deg) rotateY(-28deg)}

/* Photorealistic die artwork; SVG pips change with the roll result. */
.map-roll-control{width:120px}
.die-scene{display:block;position:relative;width:118px;height:118px;perspective:850px;filter:none}
.die-real{display:block;position:relative;width:116px;height:116px;background:url("assets/realistic-dice-body.png") center/contain no-repeat;transform-style:preserve-3d;filter:drop-shadow(0 2px 3px #30221242)}
.die-top-pips{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.die-top-pips g{display:none;fill:url(#pip-red)}
.die-real[data-value="1"] .die-top-pips g[data-pips="1"],.die-real[data-value="2"] .die-top-pips g[data-pips="2"],.die-real[data-value="3"] .die-top-pips g[data-pips="3"],.die-real[data-value="4"] .die-top-pips g[data-pips="4"],.die-real[data-value="5"] .die-top-pips g[data-pips="5"],.die-real[data-value="6"] .die-top-pips g[data-pips="6"]{display:block}
.die-real.rolling{animation:photodie-tumble .9s cubic-bezier(.18,.76,.25,1) both;filter:drop-shadow(0 9px 5px #30221262)}
@keyframes photodie-tumble{0%{transform:translateY(0) rotateX(0) rotateY(0) rotateZ(0) scale(1)}18%{transform:translateY(-20px) rotateX(32deg) rotateY(150deg) rotateZ(95deg) scale(1.13)}42%{transform:translateY(-11px) rotateX(-24deg) rotateY(330deg) rotateZ(220deg) scale(1.17)}68%{transform:translateY(-4px) rotateX(18deg) rotateY(510deg) rotateZ(330deg) scale(1.08)}100%{transform:translateY(0) rotateX(0) rotateY(720deg) rotateZ(360deg) scale(1)}}
@media(max-width:760px){.map-roll-control{width:80px}.die-scene{width:78px;height:78px;perspective:780px}.die-real{width:76px;height:76px}}

/* Focused game view: map and badge collection only. */
body{background:#f5edda;color:#352d20}
.mini-game{width:min(100% - 24px,620px);margin:0 auto;padding:20px 0 30px}
.map-column{width:100%;max-width:none;margin:0}
.map-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:0 4px 10px}
.map-heading h1{margin:0;font-family:"SimSun","Songti SC",serif;font-size:clamp(21px,5vw,29px);font-weight:600;letter-spacing:.08em}
.journey-state{display:inline-block;margin-top:4px;color:#72674f;font-size:11px}
.map-count{display:flex;align-items:baseline;gap:5px;color:#766849}
.map-count b{font-size:27px;line-height:1;color:#5b7560}
.map-count i{font-size:12px;font-style:normal}
.map-frame{width:100%;border:5px solid #fffaf1;border-radius:18px;box-shadow:0 10px 24px #6c542020}
.map-art{display:block;width:100%;height:auto;aspect-ratio:1024/1536;object-fit:contain}
.player-mascot{z-index:7;width:clamp(44px,13vw,58px);height:auto;transform:translate(-50%,-50%);transition:left .72s cubic-bezier(.18,.8,.3,1),top .72s cubic-bezier(.18,.8,.3,1);animation:none}
.player-mascot.moving{animation:traveler-hop .78s ease-in-out}
@keyframes traveler-hop{0%,100%{translate:0 0;scale:1}36%{translate:0 -17px;scale:1.12}68%{translate:0 -3px;scale:1.04}}
.dice-play-area{position:absolute;z-index:10;left:7px;bottom:7px;display:block;min-height:0;padding:0}
.map-roll-control{position:relative;top:auto;right:auto;display:flex;width:64px;flex-direction:column;align-items:center;gap:0;padding:0;border:0;background:transparent;color:#fff8e8;cursor:pointer}
.map-roll-control:hover,.map-roll-control:active{background:transparent;box-shadow:none;transform:translateY(-1px)}
.map-roll-control:disabled{opacity:.7;cursor:default}
.map-roll-label{font-size:10px;line-height:1.3;color:#fff8e8;text-shadow:0 1px 4px #342719c9}
.die-scene{position:relative;display:block;width:62px;height:62px;perspective:340px;perspective-origin:50% 54%;filter:none}
.die-scene::after{content:"";position:absolute;left:18px;right:18px;bottom:8px;height:12px;border-radius:50%;background:#241c1380;filter:blur(6px);transition:transform .4s,opacity .4s;pointer-events:none}
.die-cube3d{--final-transform:rotateX(-25deg) rotateY(-35deg);position:absolute;inset:4px;display:block;width:54px;height:54px;transform:var(--final-transform);transform-style:preserve-3d;transition:transform .2s;will-change:transform}
.die-face{position:absolute;inset:0;display:grid;width:54px;height:54px;box-sizing:border-box;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);align-items:center;justify-items:center;padding:8px;border:1px solid #d5d5d2;border-radius:12px;background:linear-gradient(145deg,#fff 0%,#f5f5f3 48%,#dadad7 100%);box-shadow:inset 2px 2px 5px #fff,inset -3px -4px 7px #c6c6c2,0 1px 1px #979793;backface-visibility:visible}
.die-face-top{background:linear-gradient(145deg,#fff 0%,#fafaf9 55%,#e4e4e1 100%);box-shadow:inset 2px 3px 6px #fff,inset -3px -4px 8px #d2d2ce}
.die-face-right,.die-face-back{background:linear-gradient(145deg,#f0f0ed 0%,#d7d7d3 60%,#bdbdb9 100%)}
.die-face-left,.die-face-bottom{background:linear-gradient(145deg,#fafaf8 0%,#e3e3e0 60%,#c9c9c5 100%)}
.die-face i{position:relative;width:7px;height:7px;border-radius:50%;background:radial-gradient(circle at 33% 27%,#61a2ff 0%,#1758b9 48%,#073577 100%);box-shadow:inset 0 1px 2px #073276,inset 0 -1px 1px #76a8ed,0 0 1px #073078}
.die-face i.pip::after{content:"";position:absolute;left:2px;top:1px;width:3px;height:2px;border-radius:50%;background:#d2e5ff;opacity:.85}
#map-die[data-value="1"] .die-face[data-value="1"] i.pip,#map-die[data-value="2"] .die-face[data-value="2"] i.pip,#map-die[data-value="3"] .die-face[data-value="3"] i.pip,#map-die[data-value="4"] .die-face[data-value="4"] i.pip,#map-die[data-value="5"] .die-face[data-value="5"] i.pip,#map-die[data-value="6"] .die-face[data-value="6"] i.pip{background:radial-gradient(circle at 33% 27%,#ff7667 0%,#e22318 50%,#9b0b08 100%);box-shadow:inset 0 1px 2px #970d07,inset 0 -1px 1px #ffada2,0 0 1px #8b0d08}
#map-die[data-value="1"] .die-face[data-value="1"] i.pip::after,#map-die[data-value="2"] .die-face[data-value="2"] i.pip::after,#map-die[data-value="3"] .die-face[data-value="3"] i.pip::after,#map-die[data-value="4"] .die-face[data-value="4"] i.pip::after,#map-die[data-value="5"] .die-face[data-value="5"] i.pip::after,#map-die[data-value="6"] .die-face[data-value="6"] i.pip::after{background:#ffd6d1}
.die-cube3d.rolling{animation:realistic-die-roll 1.05s cubic-bezier(.16,.78,.2,1) both}
.die-cube3d.rolling~.die-shadow{opacity:.3}
.die-scene:has(.die-cube3d.rolling)::after{transform:scale(.72);opacity:.48}
@keyframes realistic-die-roll{0%{transform:var(--final-transform) translateY(0) rotateZ(0)}18%{transform:translateY(-14px) rotateX(155deg) rotateY(140deg) rotateZ(55deg) scale(1.08)}43%{transform:translateY(-8px) rotateX(355deg) rotateY(310deg) rotateZ(155deg) scale(1.06)}70%{transform:translateY(-3px) rotateX(560deg) rotateY(470deg) rotateZ(245deg) scale(1.02)}100%{transform:var(--final-transform) translateY(0)}}
.badge-shelf{margin:18px 0 0;padding:18px 16px 14px;background:#eee7d9;border-radius:18px}
.badge-heading-row{align-items:center;margin-bottom:12px}
.badge-heading-row h2{margin:0;font-family:"SimSun","Songti SC",serif;font-size:21px}
.badge-heading-row p{margin:4px 0 0;color:#7c715d;font-size:11px}
.badge-total strong{font-size:25px}
.badge-total small{max-width:220px;font-size:10px}
.badge-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.badge-card{border-radius:12px}
.badge-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:13px}
.badge-actions p{flex:1 1 190px;margin:0;color:#625844;font-size:12px}
.badge-actions .redeem-button,.badge-actions .next-adventure-button{position:static;width:auto;margin:0;padding:9px 13px;border:0;border-radius:999px;background:#526e5c;color:white;font-size:12px;box-shadow:none}
.badge-actions .redeemed-tag{position:static;display:inline-block;padding:8px 11px;border-radius:999px;background:#d9e4d5;color:#3d674c;font-size:11px}
.badge-actions [hidden]{display:none!important}
@media(max-width:480px){.mini-game{width:calc(100% - 18px);padding-top:12px}.map-frame{border-width:4px;border-radius:15px}.badge-shelf{padding:14px 10px 12px}.badge-grid{gap:6px}.badge-card{padding:9px 2px}.badge-art{width:50px;height:50px}.badge-card h3{font-size:9px}.badge-card p{font-size:8px}}

/* Traveler sits on the tile center and keeps a soft idle bob. */
.player-mascot{left:50%;top:90%;width:17%;max-width:74px;transform:translate(-50%,-50%);transform-origin:center center;animation:traveler-bob 2.6s ease-in-out infinite}
.player-mascot.moving{animation:traveler-hop .78s ease-in-out}
@keyframes traveler-bob{0%,100%{margin-top:0}50%{margin-top:-8px}}

/* One readable 3D die, sized so the faces stay inside the map corner. */
.dice-play-area{position:absolute;z-index:12;left:8px;bottom:8px;display:block;overflow:visible}
.map-roll-control{display:flex;width:104px;flex-direction:column;align-items:center;overflow:visible;line-height:1.3;background:transparent}
.die-scene{position:relative;display:block;width:100px;height:100px;perspective:560px;perspective-origin:50% 42%;overflow:visible;filter:none}
.die-scene::after{left:28px;right:28px;bottom:16px}
.die-cube3d{position:absolute;left:26px;top:18px;inset:auto;width:48px;height:48px;margin:0;transform:var(--final-transform);transform-style:preserve-3d;transform-origin:center center}
.die-face{width:48px;height:48px;padding:6px;border-radius:10px;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.die-face i{visibility:hidden;width:6px;height:6px;background:none;box-shadow:none}
.die-face i.pip{visibility:visible;background:radial-gradient(circle at 33% 27%,#61a2ff 0%,#1758b9 48%,#073577 100%);box-shadow:inset 0 1px 2px #073276,inset 0 -1px 1px #76a8ed}
.map-roll-label{font-size:11px;line-height:1.3}
.prize-shelf{position:relative;margin:16px 0 0;padding:16px 14px 14px;border-radius:18px;background:#fff;border:1px solid #e5e9df}
.prize-head{padding-right:78px}
.prize-head h2{margin:0;color:#34473b;font-family:"SimSun","Songti SC",serif;font-size:16px;font-weight:650;letter-spacing:.02em}
.prize-lock{position:absolute;top:14px;right:14px;padding:6px 10px;border-radius:99px;background:#f2f3ef;color:#919a8e;font-size:11px}
.prize-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.prize-card{display:flex;min-width:0;min-height:112px;flex-direction:column;align-items:center;justify-content:center;padding:8px 4px;border:1px solid #e9ece4;border-radius:15px;background:#fbfcf9;color:#465849;cursor:pointer}
.prize-card img{display:block;width:72px;height:72px;object-fit:contain;pointer-events:none}
.prize-card b{overflow:hidden;max-width:100%;color:#455a48;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.prize-card small{margin-top:3px;color:#97a095;font-size:10px}
.prize-card.is-selected{border-color:#c8cbc6;background:#d9dbd8}
.prize-shelf .badge-actions{margin-top:12px}
.badge-shelf{margin-top:14px}

/* Photographed die. The picture keeps the glossy body and blue side pips;
   the blank top face shows the roll. */
.dice-play-area{left:6px;bottom:4px}
.map-roll-control{width:92px}
.die-scene{width:92px;height:92px;perspective:none}
.die-scene::after{display:none}
.die-photo{position:relative;display:block;width:92px;height:92px}
.die-photo img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 5px #24180c73)}
.die-top{position:absolute;left:27%;top:11%;width:44%;height:31%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);place-items:center;transform:perspective(140px) rotateX(56deg) rotateZ(-7deg);pointer-events:none}
.die-top i{width:7px;height:7px;border-radius:50%;visibility:hidden;background:radial-gradient(circle at 32% 28%,#9ec8ff 0%,#1d5ed2 46%,#08307f 100%);box-shadow:inset 0 1px 1px #e7f1ff,inset 0 -1px 1px #06245f,0 1px 1px #102248}
.die-photo[data-value="1"] .die-top i:nth-child(5),
.die-photo[data-value="2"] .die-top i:nth-child(1),.die-photo[data-value="2"] .die-top i:nth-child(9),
.die-photo[data-value="3"] .die-top i:nth-child(1),.die-photo[data-value="3"] .die-top i:nth-child(5),.die-photo[data-value="3"] .die-top i:nth-child(9),
.die-photo[data-value="4"] .die-top i:nth-child(1),.die-photo[data-value="4"] .die-top i:nth-child(3),.die-photo[data-value="4"] .die-top i:nth-child(7),.die-photo[data-value="4"] .die-top i:nth-child(9),
.die-photo[data-value="5"] .die-top i:nth-child(1),.die-photo[data-value="5"] .die-top i:nth-child(3),.die-photo[data-value="5"] .die-top i:nth-child(5),.die-photo[data-value="5"] .die-top i:nth-child(7),.die-photo[data-value="5"] .die-top i:nth-child(9),
.die-photo[data-value="6"] .die-top i:nth-child(1),.die-photo[data-value="6"] .die-top i:nth-child(3),.die-photo[data-value="6"] .die-top i:nth-child(4),.die-photo[data-value="6"] .die-top i:nth-child(6),.die-photo[data-value="6"] .die-top i:nth-child(7),.die-photo[data-value="6"] .die-top i:nth-child(9){visibility:visible}
.die-photo.rolling{animation:photodie-tumble .9s cubic-bezier(.18,.76,.25,1) both}
.player-mascot{width:9.6%;max-width:54px;filter:none;will-change:transform;animation:traveler-bob 2.6s ease-in-out infinite}
.map-frame{contain:layout paint}
.map-art{content-visibility:auto}
@keyframes traveler-bob{0%,100%{transform:translate(-50%,-50%)}50%{transform:translate(-50%,calc(-50% - 4px))}}

/* Small glossy die. Spin stays a cube, and each face uses a real pip pattern. */
.dice-play-area{left:8px;bottom:8px}
.map-roll-control,.map-roll-control:hover,.map-roll-control:active{width:78px;transform:none}
.die-scene{width:74px;height:74px;perspective:320px;perspective-origin:50% 40%;transform-style:preserve-3d}
.die-cube{position:absolute;left:15px;top:10px;width:44px;height:44px;transform-style:preserve-3d;transform:var(--final-transform,rotateX(-22deg) rotateY(34deg));transition:transform .25s}
.die-cube .die-face{position:absolute;inset:auto;display:grid;width:44px;height:44px;box-sizing:border-box;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);place-items:center;padding:5px;border:1px solid #d9d9d6;border-radius:8px;background:linear-gradient(145deg,#fff 0%,#f4f4f2 55%,#d8d8d5 100%);box-shadow:inset 1px 1px 3px #fff,inset -2px -2px 4px #c8c8c4;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.die-cube .die-face i{visibility:hidden;width:6px;height:6px;border-radius:50%;background:none;box-shadow:none}
#map-die.die-cube .die-face i.pip{visibility:visible;background:radial-gradient(circle at 32% 28%,#8ebcff 0%,#1a57c8 48%,#072e86 100%) !important;box-shadow:inset 0 1px 1px #e5f0ff,0 0 0 0.5px #0a2f78 !important}
.die-cube.rolling{animation:die-spin .9s cubic-bezier(.18,.7,.2,1) both}
@keyframes die-spin{0%{transform:rotateX(-22deg) rotateY(34deg) translateY(0)}30%{transform:rotateX(160deg) rotateY(200deg) translateY(-8px)}68%{transform:rotateX(380deg) rotateY(460deg) translateY(-3px)}100%{transform:rotateX(700deg) rotateY(740deg) translateY(0)}}

/* The photographed die, smaller, with a red pip on the blank top face. */
.dice-play-area{left:10px;bottom:10px}
.map-roll-control,.map-roll-control:hover,.map-roll-control:active{width:62px;transform:none}
.die-scene{width:58px;height:58px;perspective:none}
.die-photo{position:relative;display:block;width:58px;height:58px}
.die-photo img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #24180c66)}
.die-top{display:none}
.die-top i{width:5px;height:5px;border-radius:50%;visibility:hidden;background:none;box-shadow:none}
.die-photo[data-value="1"] .die-top i:nth-child(5),
.die-photo[data-value="2"] .die-top i:nth-child(1),.die-photo[data-value="2"] .die-top i:nth-child(9),
.die-photo[data-value="3"] .die-top i:nth-child(1),.die-photo[data-value="3"] .die-top i:nth-child(5),.die-photo[data-value="3"] .die-top i:nth-child(9),
.die-photo[data-value="4"] .die-top i:nth-child(1),.die-photo[data-value="4"] .die-top i:nth-child(3),.die-photo[data-value="4"] .die-top i:nth-child(7),.die-photo[data-value="4"] .die-top i:nth-child(9),
.die-photo[data-value="5"] .die-top i:nth-child(1),.die-photo[data-value="5"] .die-top i:nth-child(3),.die-photo[data-value="5"] .die-top i:nth-child(5),.die-photo[data-value="5"] .die-top i:nth-child(7),.die-photo[data-value="5"] .die-top i:nth-child(9),
.die-photo[data-value="6"] .die-top i:nth-child(1),.die-photo[data-value="6"] .die-top i:nth-child(3),.die-photo[data-value="6"] .die-top i:nth-child(4),.die-photo[data-value="6"] .die-top i:nth-child(6),.die-photo[data-value="6"] .die-top i:nth-child(7),.die-photo[data-value="6"] .die-top i:nth-child(9){visibility:visible;background:radial-gradient(circle at 32% 28%,#ff8d80 0%,#e10600 52%,#8d0906 100%);box-shadow:inset 0 1px 1px #ffd2cb,0 0 0 0.4px #7a0906}
.die-photo.rolling{animation:photo-spin .85s cubic-bezier(.2,.7,.2,1) both}
.die-photo.rolling .die-top{opacity:0}
@keyframes photo-spin{0%{transform:translateY(0) rotate(0)}40%{transform:translateY(-7px) rotate(220deg)}100%{transform:translateY(0) rotate(720deg)}}
.prize-card:disabled{opacity:.72;cursor:default}
.prize-lock.is-open{background:#e8f1e3;color:#608458}
.prize-form{display:grid;gap:10px;margin-top:12px;padding:14px;border:1px solid #e3e9df;border-radius:16px;background:#f8faf6}
.prize-form[hidden]{display:none}
.prize-form-head b,.prize-form-head small{display:block}
.prize-form-head b{color:#3c5140;font-size:14px}
.prize-form-head small{margin-top:3px;color:#8c9889;font-size:11px}
.prize-form label{display:grid;gap:5px;color:#71806f;font-size:11px;font-weight:650}
.prize-form input{width:100%;height:42px;padding:0 10px;border:1px solid #dfe6dc;border-radius:10px;background:#fff;color:#34473b;font-size:16px}
.prize-submit{min-height:44px;border:0;border-radius:12px;background:#68865e;color:#fff;font-size:14px;font-weight:750}
.prize-shelf.is-open .prize-card:disabled{opacity:1;cursor:pointer}
.badge-shelf{overflow:hidden}
.badge-grid{display:flex;flex-wrap:nowrap;gap:8px;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;touch-action:pan-x pan-y;cursor:grab;-webkit-overflow-scrolling:touch;padding-bottom:8px;scrollbar-width:thin}
.badge-grid.is-dragging{cursor:grabbing}
.badge-card{flex:0 0 84px;width:84px}
#voucher-result{display:grid;justify-items:center;gap:8px;margin:12px 0}
#voucher-result[hidden]{display:none}
#voucher-qr{width:220px;height:220px;border-radius:12px;background:#fff}
#voucher-code{color:#3c5140;font-size:16px;letter-spacing:.08em}
#voucher-result small{color:#7d8b78;font-size:12px;line-height:1.5;text-align:center}

