
/* REBUILD portable migration overrides
   Captured design CSS remains untouched in site-captured.css / hero-captured.css. */
.migration-preview-badge{position:fixed;right:10px;bottom:10px;z-index:999;background:#061522e8;border:1px solid #bca96f;color:#d8c993;padding:5px 8px;font:600 10px/1.2 var(--mono);letter-spacing:.08em;pointer-events:none}
.service-deck article{padding:0;overflow:hidden}.service-card-link{display:block;height:100%;padding:26px 24px;color:inherit;text-decoration:none}.service-card-link:focus-visible{outline:2px solid var(--gold-bright);outline-offset:-4px}.card-cta,.quest-cta,.log-cta{display:inline-flex;align-items:center;min-height:44px;margin-top:10px;color:var(--gold-bright);font-family:var(--mono);font-size:.78rem;font-weight:700;letter-spacing:.04em}.service-card-link:hover .card-cta,.quest-card-link:hover .quest-cta,.log-cta:hover{color:var(--blue-soft)}
.quest-node{position:relative;transition:border-color .2s,box-shadow .2s,background-color .2s!important}.quest-node.is-linked{cursor:pointer}.quest-card-overlay{position:absolute;inset:0;z-index:3;border:0;text-decoration:none}.quest-card-overlay:focus-visible{outline:2px solid var(--gold-bright);outline-offset:-4px}.quest-node .quest-cta{position:relative;z-index:2}.quest-node.is-static{cursor:default}.quest-static-note{display:inline-flex;margin:0 20px 18px;color:var(--muted);font-family:var(--mono);font-size:.72rem;letter-spacing:.05em}
.quest-node,
.quest-node:hover,
.quest-node:focus-within,
.quest-node.is-static:hover{transform:none!important}
@media (min-width:821px){
  .quest-node-2,
  .quest-node-4,
  .quest-node-2:hover,
  .quest-node-4:hover,
  .quest-node-2:focus-within,
  .quest-node-4:focus-within,
  .quest-node-2.is-static:hover,
  .quest-node-4.is-static:hover{transform:translateY(34px)!important}
}
.quest-node:hover,
.quest-node:focus-within{border-color:var(--gold)!important;box-shadow:0 0 22px #d8c9932e!important;background:#06242ce6}
.quest-node.is-linked:hover .quest-cta,
.quest-node.is-linked:focus-within .quest-cta{color:var(--blue-soft)}
.ability-head small{max-width:340px;text-align:right}.ability-note{grid-column:1/-1;margin:10px 0 0;color:#8498a4;font-family:var(--mono);font-size:.68rem;letter-spacing:.04em}.ability-meter{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}.ability-readout{color:var(--gold);font-family:var(--mono);font-size:.68rem;font-weight:700;letter-spacing:.06em;min-width:2.1em;text-align:right}.ability-track{display:block!important;grid-template-columns:none!important;gap:0!important;align-self:center;height:8px!important;overflow:hidden!important;background:#f5f0e314!important;border:1px solid #ffffff24}.ability-track .ability-fill{display:block!important;width:var(--ability-fill,0%)!important;height:100%!important;background:linear-gradient(90deg,var(--gold),var(--blue))!important;border:0!important}.ability p{font-size:.82rem}
.sns-channel{margin-top:28px}.sns-channel-head{margin-bottom:16px}.sns-channel-head h3{margin:.35em 0 .4em;font-size:1.05rem}.sns-channel-head p{color:#aebdc4;margin:0;font-size:.86rem}.sns-channel-deck{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.sns-card{display:flex;flex-direction:column;justify-content:flex-start;min-height:148px;padding:20px 18px;border:1px solid #f0d88e57;background:linear-gradient(180deg,#071a16f2,#0a241cf0);color:inherit;text-decoration:none}.sns-card>span:first-child{color:var(--gold);font-family:var(--mono);font-size:.68rem;font-weight:700;letter-spacing:.08em}.sns-card h4{margin:.45em 0 .35em;font-size:1rem}.sns-card p{color:#aebdc4;margin:0;font-size:.84rem}.sns-card .card-cta{margin-top:auto}.sns-card:hover{border-color:#d8c993;background:linear-gradient(180deg,#0a221c,#0d2c24)}.sns-card:focus-visible{outline:2px solid var(--gold-bright);outline-offset:3px}
.log-cta{border-bottom:1px solid #d8c99366;padding-bottom:2px}
.form-status{min-height:1.7em;margin-top:10px;color:var(--blue-soft);font-family:var(--mono);font-size:.78rem}.form-status[data-state=error]{color:#f6a29d}.form-status[data-state=success]{color:#72dfa2}
@media (max-width:1080px){.migration-preview-badge{display:none}.service-card-link{padding:22px 20px}.quest-node{min-height:0}.ability-head{align-items:flex-start}.ability-head small{text-align:left}}
@media (max-width:720px){.sns-channel-deck{grid-template-columns:1fr}}
@media (max-width:520px){.quest-node{min-width:0}.ability p{font-size:.75rem}.card-cta,.quest-cta,.log-cta{font-size:.72rem}}
/* Mobile Hero (<=1080px): video fills the top of the Hero behind the headline and dissolves into the world art;
   the world art is right-anchored so the castle and crystal stay in frame.
   The video itself is never hidden (iOS only autoplays visible video): the poster sits above it and fades out once playing.
   Scene framing and the closing logo are driven by app.js via data-mframe. */
.poc-ending{display:none}
@media (max-width:1080px){
  .hero{padding-top:200px}
  .hero .hero-atmosphere{display:none}
  .hero .poc-media{display:block;position:absolute;inset:0 0 auto 0;height:470px;z-index:-3;overflow:hidden;background:transparent;-webkit-mask-image:linear-gradient(180deg,#000 62%,transparent);mask-image:linear-gradient(180deg,#000 62%,transparent)}
  .hero .poc-media>img,.hero .poc-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:56% 50%}
  .hero .poc-media>img{z-index:1;transition:opacity .6s ease}
  .hero .poc-media[data-mode=playing]>img{opacity:0}
  .hero .poc-media::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(180deg,#051826b3 0,#05182626 24%,#05182600 36%,#05182673 70%)}
  .hero .hero-art{top:400px;bottom:auto;height:660px;object-position:100% 0;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22%,#000 70%,transparent);mask-image:linear-gradient(180deg,transparent 0,#000 22%,#000 70%,transparent)}
  .hero::before{background:linear-gradient(180deg,#0518260d 0,#0518261a 34%,#061c2bb8 50%,#061c2bc2 76%,#061522 100%)}
  .hero .hero-subtitle,.hero .hero-lead{text-shadow:0 1px 2px #020c14,0 0 14px #051826e6}
  .hero .poc-media[data-mframe=center] video{object-position:50% 50%}
  /* Ending: the film's white-out keeps spreading down as a white field (same soft lower edge as the video),
     only the logo emerges on it, and the headline turns to ink while it sits on white. */
  .hero .poc-ending{display:block;position:absolute;inset:0 0 auto 0;height:590px;z-index:-1;pointer-events:none;opacity:0;transition:opacity .7s ease;background:#fdfdfb;-webkit-mask-image:linear-gradient(180deg,#000 450px,transparent);mask-image:linear-gradient(180deg,#000 450px,transparent)}
  .hero .poc-media[data-mframe=ending]~.poc-ending{opacity:1}
  .hero .poc-media::after{transition:opacity .7s ease}
  .hero .poc-media[data-mframe=ending]::after{opacity:0}
  .hero::after{transition:opacity .7s ease}
  .hero:has(.poc-media[data-mframe=ending])::after{opacity:0}
  .hero .poc-ending img{position:absolute;left:50%;top:72px;width:auto;height:160px;opacity:0;transform:translateX(-50%) scale(.96);transition:opacity .8s ease .5s,transform 3.5s ease-out .5s}
  .hero .poc-media[data-mframe=ending]~.poc-ending img{opacity:1;transform:translateX(-50%) scale(1)}
  .hero h1,.hero h1 span,.hero h1 em,.hero .hero-subtitle{transition:color .7s ease,text-shadow .7s ease}
  .hero .poc-media[data-mframe=ending]~.hero-content h1{color:#0b2231;text-shadow:none}
  .hero .poc-media[data-mframe=ending]~.hero-content h1 span{color:#4a6170}
  .hero .poc-media[data-mframe=ending]~.hero-content h1 em,.hero .poc-media[data-mframe=ending]~.hero-content .hero-subtitle{color:#0f6b80;text-shadow:none}
  .hero .hero-topline,.hero .hero-content .eyebrow{transition:opacity .5s ease}
  .hero .poc-media[data-mframe=ending]~.hero-topline,.hero .poc-media[data-mframe=ending]~.hero-content .eyebrow{opacity:0}
}
/* Desktop Hero (>=1081px): the ending keeps the Production V15 look (hero-captured.css data-framing="ending"),
   copy and player panel untouched; the loop restarts through the veil with a fade. */
@media (min-width:1081px){.poc-restart-veil{transition:opacity .6s ease}}
/* FIELD LOG status COMPLETED (from the Website Content Registry log_status column): gold marker, matching "QUEST • CLEAR". */
.log-entry.completed .log-index i{background:#c9a24a;box-shadow:0 0 10px #c9a24a59}.log-entry.completed .log-meta b{color:#8a6d1f}
/* Japanese line breaking. Headings break only between phrases (.phrase is never split), .br-sp is a phone-only break,
   and body copy avoids leaving one or two characters alone on the last line. */
.phrase{display:inline-block}
.br-sp{display:none}
p,li,dd,small,blockquote{text-wrap:pretty}
@media (max-width:720px){
  .br-sp{display:inline}
  /* B2C interview scene: show the illustration (holographic dialogue + the two at the desk) above the copy, fading out below it */
  #individual .individual-art{inset:0 0 auto 0;height:480px;object-position:60% 50%;-webkit-mask-image:linear-gradient(180deg,#000 62%,transparent);mask-image:linear-gradient(180deg,#000 62%,transparent)}
  #individual .b2c-stage{padding-top:216px}
}
