.figma-popup-overlay{
  background:rgba(3,7,17,.72);
  align-items:center;
  justify-content:center;
}
.overlay button{
  font-family:var(--font-source-serif) !important;
}
.figma-popup{
  position:relative;
  flex:none;
  font-family:"Source Han Serif SC","Noto Serif SC",serif;
  color:#332719;
  animation:fp-pop .28s cubic-bezier(.2,1.25,.45,1) both;
}
.figma-popup.is-tall{width:380px}
.figma-popup.is-wide{width:390px}
.fp-shell{
  position:relative;
  z-index:0;
  display:block;
  width:100%;
  height:auto;
  pointer-events:none;
}
.fp-close{
  position:absolute;
  z-index:8;
  top:-18px;
  right:-4px;
  width:31px;
  height:32px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}
.fp-close img{display:block;width:100%;height:100%;object-fit:contain}
.fp-title{
  position:absolute;
  z-index:4;
  top:11px;
  left:25%;
  width:50%;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  letter-spacing:2px;
  line-height:1;
  white-space:nowrap;
  font-family:"Source Han Serif SC","Noto Serif SC",serif;
}
.is-wide .fp-title{top:12px}
.fp-lead{
  position:absolute;
  z-index:3;
  top:82px;
  left:50px;
  right:50px;
  text-align:center;
  font-size:21px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-family:"Source Han Serif SC","Noto Serif SC",serif;
}
.fp-media,.fp-paper{
  position:absolute;
  z-index:2;
  top:134px;
  left:111px;
  width:159px;
  height:184px;
  object-fit:cover;
  border-radius:8px;
}
.fp-paper{object-fit:fill}
.fp-content{
  position:absolute;
  z-index:3;
  top:143px;
  left:119px;
  width:143px;
  height:166px;
  overflow:auto;
  scrollbar-width:none;
  text-align:center;
  font-family:"Source Han Serif SC","Noto Serif SC",serif;
}
.fp-content::-webkit-scrollbar{display:none}
.fp-copy{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  line-height:1.8;
}
.fp-list{
  width:100%;
  min-height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
}
.fp-list-row{
  width:100%;
  min-height:21px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  padding:2px 5px;
  border:0;
  background:transparent;
  color:#433421;
  font:12px/1.15 var(--font-source-serif);
  text-align:left;
}
button.fp-list-row{cursor:pointer}
.fp-list-row b{color:#805c28;font-weight:700;text-align:right}
.fp-list-row.is-today,.fp-list-row.is-on{color:#8a541d;font-weight:800}
.fp-list-row.is-done{opacity:.58}
.is-signin .fp-paper{
  top:67px;
  left:30px;
  width:320px;
  height:270px;
  border-radius:12px;
  background:linear-gradient(180deg,#d2b79e,#ddc5ad);
  box-shadow:inset 0 0 18px rgba(255,239,214,.28),0 0 0 1px rgba(112,75,43,.18);
}
.is-signin .fp-content{
  top:78px;
  left:41px;
  width:298px;
  height:248px;
  overflow:visible;
}
.fp-sign-grid{
  --sign-featured:#b96f24;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  width:100%;
}
.fp-sign-card{
  position:relative;
  display:grid;
  grid-template-rows:16px 29px minmax(18px,auto);
  place-items:center;
  min-width:0;
  height:70px;
  padding:3px 4px 4px;
  overflow:hidden;
  border:1px solid rgba(137,94,39,.42);
  border-radius:9px;
  background:rgba(145,101,66,.92);
  color:#fff8ec;
  font-family:var(--font-source-serif);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.32);
}
.fp-sign-card:disabled{cursor:default}
.fp-sign-day{
  font-size:11px;
  font-weight:700;
  line-height:16px;
  letter-spacing:1px;
}
.fp-sign-icon{
  display:block;
  width:27px;
  height:27px;
  object-fit:contain;
  filter:drop-shadow(0 2px 3px rgba(82,48,15,.22));
}
.fp-sign-card:not(.is-featured) .fp-sign-icon{
  filter:saturate(1.45) contrast(1.12) brightness(1.04) drop-shadow(0 2px 3px rgba(82,48,15,.2));
}
.fp-sign-reward{
  width:100%;
  overflow:hidden;
  color:#fff8ec;
  font-size:9px;
  line-height:12px;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fp-sign-card.is-featured{
  grid-column:1/-1;
  grid-template-columns:56px 46px 1fr;
  grid-template-rows:1fr;
  height:78px;
  padding:8px 14px;
  border-color:#f0c06b;
  background:linear-gradient(135deg,rgba(101,50,25,.94),rgba(48,25,17,.92));
  color:#fff8dc;
  box-shadow:inset 0 0 0 1px rgba(255,236,174,.35),0 5px 13px rgba(91,48,17,.2);
}
.fp-sign-card.is-featured .fp-sign-day{font-size:13px}
.fp-sign-card.is-featured .fp-sign-icon{width:40px;height:40px}
.fp-sign-card.is-featured .fp-sign-icon{
  filter:drop-shadow(0 2px 3px rgba(66,34,16,.24));
  opacity:.94;
}
.fp-sign-card.is-featured .fp-sign-reward{
  color:#fff3ca;
  font-size:11px;
  line-height:15px;
  text-align:left;
  white-space:normal;
}
.fp-sign-card.is-today{
  border-color:#e4ae52;
  box-shadow:0 0 0 2px rgba(255,213,119,.75),0 0 14px rgba(227,164,64,.5);
}
.fp-sign-card.is-done{opacity:1}
.fp-sign-check{
  position:absolute;
  right:4px;
  bottom:3px;
  padding:1px 4px;
  border-radius:5px;
  background:rgba(76,53,28,.75);
  color:#fff7dc;
  font-size:8px;
  line-height:12px;
}
.is-signin .fp-text-link{top:339px}
.is-signin .fp-actions.is-single{top:365px}
.fp-text-link{
  position:absolute;
  z-index:5;
  left:120px;
  top:322px;
  width:140px;
  padding:0;
  border:0;
  background:transparent;
  color:#7e5c2e;
  font:12px/1.2 var(--font-source-serif);
  text-decoration:underline;
  cursor:pointer;
}
.fp-actions{
  position:absolute;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
}
.is-tall .fp-actions.is-single{
  top:359px;
  left:111px;
  width:158px;
  height:67px;
}
.is-wide .fp-actions.is-double{
  top:181px;
  left:39px;
  right:31px;
  height:68px;
  justify-content:space-between;
}
.fp-action{
  position:relative;
  width:158px;
  height:67px;
  padding:0;
  border:0;
  background:transparent;
  color:#553d20;
  font:17px/1 var(--font-source-serif);
  letter-spacing:1px;
  line-height:1;
  cursor:pointer;
  transition:transform .12s ease;
}
.fp-action:active{transform:scale(.96)}
.fp-action img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:fill;
  pointer-events:none;
}
.fp-action span{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:0;
  line-height:1;
  white-space:nowrap;
  transform:translateY(-1px);
  font-family:"Source Han Serif SC","Noto Serif SC",serif;
}
.fp-action.is-video span{
  left:58px;
  right:10px;
  width:auto;
  justify-content:center;
}
.fp-message{
  position:absolute;
  z-index:3;
  top:82px;
  left:42px;
  right:42px;
  height:88px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:18px;
  line-height:1.55;
  font-family:"Source Han Serif SC","Noto Serif SC",serif;
}
.fp-message b{display:inline-block;color:#7d5222;font-family:inherit;font-size:20px}
.fp-message small{display:block;margin-top:3px;color:#78664f;font-family:inherit;font-size:11px}
.fp-inline-action{
  margin-top:4px;
  padding:0;
  border:0;
  background:transparent;
  color:#8c5a22;
  font:13px/1.2 "Source Han Serif SC","Noto Serif SC",serif;
  text-decoration:underline;
  cursor:pointer;
}
@keyframes fp-pop{
  0%{opacity:0;transform:scale(.82)}
  100%{opacity:1;transform:scale(1)}
}
@media (prefers-reduced-motion:reduce){
  .figma-popup{animation:none}
  .fp-action{transition:none}
}

.instruction-cutout-overlay{
  background:rgba(2,7,16,.76);
  align-items:center;
  justify-content:center;
}
.instruction-cutout-dialog{
  position:relative;
  width:min(82%,360px);
  display:flex;
  flex-direction:column;
  align-items:center;
  filter:drop-shadow(0 14px 28px rgba(0,0,0,.62));
  animation:fp-pop .28s cubic-bezier(.2,1.25,.45,1) both;
  container-type:inline-size;
}
.instruction-cutout-art{
  display:block;
  width:100%;
  max-height:690px;
  object-fit:contain;
  user-select:none;
  -webkit-user-drag:none;
}
.instruction-cutout-close{
  position:absolute;
  z-index:8;
  top:2px;
  right:-8px;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.5));
}
.instruction-cutout-close img{display:block;width:100%;height:100%;object-fit:contain}
.instruction-cutout-action{
  position:relative;
  isolation:isolate;
  overflow:visible;
  width:170px;
  height:52px;
  margin-top:10px;
  padding:0;
  border:0;
  background-color:transparent;
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
  color:#ffe8b5;
  font-size:20px;
  font-weight:800;
  letter-spacing:2px;
  text-shadow:0 1px 3px rgba(0,0,0,.9);
  cursor:pointer;
  transform-origin:50% 50%;
  animation:instructionAddButtonBreath 2.2s ease-in-out infinite;
}
.instruction-cutout-action.is-entry{background-image:url("art/figma/home-38-19/entry-button.png")}
.instruction-cutout-action.is-desktop{background-image:url("art/figma/home-38-19/desktop-button.png")}
.instruction-add-glow-source{
  position:absolute;
  z-index:-1;
  inset:0;
  width:100%;
  height:100%;
  object-fit:fill;
  pointer-events:none;
  mix-blend-mode:screen;
}
.instruction-add-glow-source.is-wide{
  filter:
    brightness(0)
    drop-shadow(0 0 9px rgba(255,250,218,.88))
    drop-shadow(0 0 17px rgba(255,232,153,.7));
  animation:instructionAddGlowWide 2.2s ease-in-out infinite;
}
.instruction-add-glow-source.is-core{
  filter:
    brightness(0)
    drop-shadow(0 0 3px rgba(255,255,239,1))
    drop-shadow(0 0 8px rgba(255,244,190,.96))
    drop-shadow(0 0 16px rgba(255,226,132,.72));
  animation:instructionAddGlowCore 2.2s ease-in-out infinite;
}
.instruction-add-particles{
  position:absolute;
  z-index:2;
  inset:-36% -20%;
  overflow:visible;
  pointer-events:none;
}
.instruction-add-particles i{
  position:absolute;
  left:var(--particle-left);
  top:var(--particle-top);
  width:var(--particle-size);
  height:var(--particle-size);
  border-radius:50%;
  background:#fffde2;
  box-shadow:0 0 4px #fff,0 0 9px rgba(255,235,153,.95);
  opacity:0;
  animation:instructionAddParticle var(--particle-duration) ease-out var(--particle-delay) infinite;
}
.instruction-cutout-action-label{position:relative;z-index:3}
.instruction-cutout-action:active{filter:brightness(.92)}
@keyframes instructionAddButtonBreath{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.045)}
}
@keyframes instructionAddGlowWide{
  0%,100%{opacity:.42;transform:scale(1)}
  50%{opacity:.88;transform:scale(1.025)}
}
@keyframes instructionAddGlowCore{
  0%,100%{opacity:.5;transform:scale(1)}
  50%{opacity:1;transform:scale(1.012)}
}
@keyframes instructionAddParticle{
  0%,14%{opacity:0;transform:translate(0,0) scale(.45)}
  28%{opacity:1}
  72%{opacity:.82}
  100%{opacity:0;transform:translate(var(--particle-x),var(--particle-y)) scale(1.45)}
}
