/* city-mobile.css · sorahseong.com home, City View on phones and iPads (up to 900px wide) · v6, 30 Nov 2026
   The first screen gets the laptop's sunset photo (assets/nyc-sunset-empire.jpg). Everything below it,
   the text and Get in Touch, stays exactly as it is now.
   Needs one HTML change (see README): <img class="nyc-scene"> loads assets/nyc-sunset-empire.jpg.
   Load this file after the site's own styles. On laptops and desktops used with a mouse only 7 (City View and
   Treetops fireflies at rest), 9 (the dotted "Move me" label) and 11 (chests above the dark veil) apply.
   v2: no fireflies around the City View chests at rest (7), the iPad Treetops label is dotted too (6A),
   and when a chest opens the ghost stays on screen and its name reads on two centred lines (8, both scenes).
   v3: laptops and sideways iPads get the dotted "Move me" label too (9, City View and Treetops).
   v4: on phones and iPads the chest name sits in a lighter, roomier pill (10, City View and Treetops).
   v5: on screens 901px and up, City View's chests, their names and the ghost sit above the dark veil that fades
   the photo into the text, so the low Books chest no longer looks faint (11).
   v6: no fireflies around the Treetops chests at rest either (7), so both scenes look the same however a visitor
   arrives. */

/* 1. Phones (up to 680px): the first screen shows the whole Empire State, spire included.
      The site's own shading still fades the photo into the dark below, as before. */
@media (max-width: 680px) {
  html body.home-view[data-site-scene="nyc"] .forest-stage[data-scene="nyc"] img.nyc-scene {
    transform: none !important;
    object-position: 55% 100% !important;
  }
}
/* Very small phones (340px or less): the photo moves a little so the tower stays clear of the Research chest. */
@media (max-width: 340px) {
  html body.home-view[data-site-scene="nyc"] .forest-stage[data-scene="nyc"] img.nyc-scene {
    object-position: 52% 100% !important;
  }
}

@media (max-width: 680px) {
  /* 2. Phones: the resting ghost moves right, into the open sky beside the Empire State,
        so the ghost and its label no longer sit on the building. Only the resting place changes:
        the height, dragging, a parked ghost and the moves around an open chest are the site's own. */
  html body.home-view[data-site-scene="nyc"] .forest-stage[data-scene="nyc"] .connections[data-selected=""]:not(.path-cursor-active) .spirit-wrap:not(.mobile-ghost-dragging, .mobile-ghost-parked) {
    left: 64%;
  }

  /* 3. Phones: the "Move me to a treasure chest" label. It was a solid black pill.
        Now it is a little dark inside, with a white dotted line around it and white letters.
        Same words, same place above the ghost, still gone after the first move. */
  html body.home-view[data-site-scene="nyc"] .forest-stage[data-scene="nyc"] .spirit-wrap.touch-draggable-ghost.ghost-move-invitation::after {
    padding: 5px 12px 6px;
    background: rgba(14, 14, 34, .42);
    border: 1.5px dotted rgba(255, 255, 255, .92);
    border-radius: 999px;
    box-shadow: none;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  }
}

/* 4. iPads (681 to 900px wide): the same sunset photo. The Empire State stands at the left,
      with the chests and the ghost in the sky and on the roofs to its right. */
@media (min-width: 681px) and (max-width: 900px) {
  html body.home-view[data-site-scene="nyc"] .forest-stage[data-scene="nyc"] img.nyc-scene {
    transform: none !important;
    object-position: 66% 100% !important;
  }
}
/* Phones turned sideways fall in the same width range; there the tower needs to sit further left. */
@media (min-width: 681px) and (max-width: 900px) and (orientation: landscape) {
  html body.home-view[data-site-scene="nyc"] .forest-stage[data-scene="nyc"] img.nyc-scene {
    object-position: 96% 100% !important;
  }
}

/* 5. Phones and iPads: gold chests, as on the laptop (city-chests.css): warm gold with a dark outline
      and a soft golden glow, a little larger. They were faint cream outlines that disappeared into the sky.
      Opening (the lid and the fruit), the breathing glow and the blueprint buildings are unchanged. */
@media (max-width: 900px) {
  html body.home-view .forest-stage[data-scene="nyc"] .discovery .light-call .treasure {
    scale: 1.3;
    opacity: 1 !important;
    filter: drop-shadow(0 0 5px rgba(255, 205, 120, .85)) drop-shadow(0 1.5px 1.5px rgba(24, 14, 6, .55));
  }
  html body.home-view .forest-stage[data-scene="nyc"] .discovery .treasure :is(path, rect) {
    stroke: #4a2e14 !important;
    stroke-width: 1.5px !important;
  }
  html body.home-view .forest-stage[data-scene="nyc"] .discovery .treasure .treasure-lid { fill: #f8d27a !important; }
  html body.home-view .forest-stage[data-scene="nyc"] .discovery .treasure path:not(.treasure-lid) { fill: #e8ad48 !important; }
  html body.home-view .forest-stage[data-scene="nyc"] .discovery .treasure .treasure-lock { fill: #5a3816 !important; stroke: none !important; }
}
/* On the bigger iPad screen the chests are a little larger again, so they do not look tiny next to the ghost. */
@media (min-width: 681px) and (max-width: 900px) {
  html body.home-view .forest-stage[data-scene="nyc"] .discovery .light-call .treasure {
    scale: 1.5;
  }
}

/* 6. iPads (touch, no mouse): the "Move me to a treasure chest" label, in City View and Treetops.
      The site shows it only on phones (680px or less) and on computers with a mouse, so a touch screen wider
      than 680px showed none. Now it shows there too, and it still disappears after the first move
      (the site's own .pathway-hint-dismissed rule and .ghost-move-invitation class take care of that).
      A. Upright iPads (681 to 900px; also phones turned sideways): above the ghost, as on phones,
         with the dotted look from 3 in both scenes (v2: Treetops was the dark pill in v1). */
@media (min-width: 681px) and (max-width: 900px) and (hover: none) and (pointer: coarse) {
  html body.home-view .forest-stage:is([data-scene="nyc"], [data-scene="treetop"]) .spirit-wrap.touch-draggable-ghost.ghost-move-invitation::after {
    content: "Move me to a treasure chest";
    position: absolute;
    left: 50%;
    top: -7px;
    transform: translate(-50%, -100%);
    width: max-content;
    max-width: none;
    white-space: nowrap;
    padding: 5px 12px 6px;
    background: rgba(14, 14, 34, .42);
    border: 1.5px dotted rgba(255, 255, 255, .92);
    border-radius: 999px;
    box-shadow: none;
    color: #fff;
    font: italic 400 12px/1.4 Georgia, serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
    text-align: center;
    pointer-events: none;
  }
  /* Treetops, as on phones: a little higher, clear of the ghost's ears */
  html body.home-view .forest-stage[data-scene="treetop"] .spirit-wrap.touch-draggable-ghost.ghost-move-invitation::after {
    top: -52px;
    transform: translateX(-50%);
  }
}
/*    B. iPads turned sideways, and big iPads upright (901px and up): the same label as on a laptop. Its place and
         look come from 9 (v3). */
@media (min-width: 901px) and (hover: none) and (pointer: coarse) {
  html body.home-view .forest-stage:is([data-scene="nyc"], [data-scene="treetop"]) .connections .spirit-wrap.ghost-move-invitation::after {
    content: "Move me to a treasure chest";
    position: absolute;
    width: max-content;
    pointer-events: none;
  }
}

/* 7. City View and Treetops: no fireflies around the chests before one is opened (City View v2, Treetops v6).
      Arriving straight in the scene (a reload, or a link with ?scene=nyc or ?scene=treetop), six glowing yellow
      dots floated around each chest. Picking the scene from the scene menu showed none, because the site counts a
      scene change as already explored (.connections.has-explored). Under the sunset photo they looked busy (v2);
      v6 hides them in Treetops too, so both scenes look the same however a visitor arrives. They stay hidden until
      a chest opens. Opening a chest is unchanged: the lid opens, the chest glows, and the same six elements burst
      out as before. All screen sizes. */
html body.home-view .forest-stage:is([data-scene="nyc"], [data-scene="treetop"]) .discovery:not(.is-revealed) .fireflies {
  opacity: 0 !important;
}

/* 8. Phones and iPads, City View and Treetops: when a chest opens (v2). Two fixes to the site's own rules.
      A. Phones: the ghost steps aside to the LEFT of Practice, as chest-open-integration.css means it to.
         There, "--chest-ghost-side: -1" for Practice loses to a stronger rule, so the ghost went right and
         half off the screen. Research and Books are unchanged.
      B. The chest name now reads on two lines, centred under the chest: the name ("Practice"), and
         "Tap to enter" smaller below it. It was one long line ("Practice · Tap to enter") that stuck out past
         the left edge (Research) or the right edge (Practice) of a phone. Same words and colours. */
@media (max-width: 680px) {
  html body.home-view .forest-stage:is([data-scene="nyc"], [data-scene="treetop"]) .connections[data-selected="practice"]:has(.discovery.is-revealed) .spirit-wrap {
    --chest-ghost-side: -1;
  }
  html body.home-view .forest-stage:is([data-scene="nyc"], [data-scene="treetop"]) .mobile-light-armed .revealed-label::after {
    content: "Tap to enter";
    display: block;
    margin: 1px 0 0;
    font: 500 10px/1.3 Arial, sans-serif;
    text-align: center;
  }
  html body.home-view .forest-stage:is([data-scene="nyc"], [data-scene="treetop"]) .mobile-light-armed .revealed-label {
    text-align: center;
  }
}
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  html body.home-view .forest-stage:is([data-scene="nyc"], [data-scene="treetop"]) .discovery:has(.light-call[data-ghost-armed="true"]) .revealed-label::after {
    content: "Tap to enter";
    display: block;
    margin: 1px 0 0;
    font: 500 10px/1.3 Arial, sans-serif;
    text-align: center;
  }
  html body.home-view .forest-stage:is([data-scene="nyc"], [data-scene="treetop"]) .discovery:has(.light-call[data-ghost-armed="true"]) .revealed-label {
    text-align: center;
  }
}

/* 9. Laptops and desktops, and iPads held sideways: the "Move me to a treasure chest" label gets the same dotted
      look as on phones, and sits just above the ghost's head, a little to the right, like a speech bubble (v3).
      It was plain italic white text beside the ghost. To the right, so in City View it stays clear of the
      Empire State; in Treetops a little higher, clear of the ears. Still gone once a chest has been chosen.
      City View and Treetops. */
@media (min-width: 681px) and (hover: hover) and (pointer: fine), (min-width: 901px) and (hover: none) and (pointer: coarse) {
  html body.home-view .forest-stage:is([data-scene="nyc"], [data-scene="treetop"]) .connections .spirit-wrap::after {
    left: 44%;
    top: -6px;
    transform: translateY(-100%);
    translate: none;
    padding: 5px 12px 6px;
    background: rgba(14, 14, 34, .42);
    border: 1.5px dotted rgba(255, 255, 255, .92);
    border-radius: 999px;
    box-shadow: none;
    color: #fff;
    font: italic 400 12px/1.4 Georgia, serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  }
  html body.home-view .forest-stage[data-scene="treetop"] .connections .spirit-wrap::after {
    top: -22px;
  }
}

/* 10. Phones and iPads (touch screens), City View and Treetops: the chest name ("Practice" over "Tap to enter")
       sits in a lighter, roomier pill (v4). It was a black pill (rgba(0, 0, 0, .72), darker still when pressed),
       about 3px from the letters above and below.
       - A little dark inside (rgba(14, 14, 34, .5), the navy of the "Move me" bubble) with a thin white line
         and 18px corners. A solid line, not the dotted one: the dotted bubble is a hint, this is a door you tap.
       - More room: 8px above and below the letters (inset 3px instead of 8px), and 12px beside the longer line.
         The label's 88px minimum width is lifted, so the pill follows the name: short names get no extra space.
       - A soft shadow under the letters keeps them clear over the city lights and the flowers.
       Laptops and desktops used with a mouse are not changed. */
@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  html body.home-view .forest-stage:is([data-scene="nyc"], [data-scene="treetop"]) .discovery .revealed-label {
    min-width: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  }
  html body.home-view .forest-stage:is([data-scene="nyc"], [data-scene="treetop"]) .discovery .revealed-label::before {
    inset: 3px 2px;
    background: rgba(14, 14, 34, .5);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 18px;
  }
}

/* 11. Screens 901px and up (laptops, desktops, iPads held sideways, big iPads), City View: the stage with the chests,
       their names, the ghost and the searchlights sits above the dark veil that fades the sunset photo into the text
       below (v5). That veil (.forest-landing::after in home-scenic-prototype.css, rgba(10, 19, 34, .7), fading in
       over 470px) lay over the whole stage, and the Books chest sits low, where the veil is already strong: its name
       was 45 to 60% darker and looked faint, and the ghost and the foot of each searchlight were dimmed too.
       On these screens the photo is the landing's own background (.forest-landing::before, city-dusk.css), not part
       of the stage, so it stays under the veil and fades into the dark exactly as before. The text below
       (.landing-reflection, z-index 2, later in the page) still sits above the stage, and the Scene menu is in the
       header. Phones and upright iPads (up to 900px), and the other scenes, are not changed.
       Out from under the veil, the searchlight lamps on the roofs shine at full strength, as drawn. On some laptops
       (1280 x 800) the middle lamp sits right behind the small "Click to enter" under Books, so that line gets a soft
       dark halo; elsewhere the halo does not show. */
@media (min-width: 901px) {
  html body.home-view .forest-landing > .forest-stage[data-scene="nyc"] {
    z-index: 2;
  }
  html body.home-view .forest-landing > .forest-stage[data-scene="nyc"] .discovery .revealed-label::after {
    text-shadow: 0 0 2px rgba(0, 0, 0, .9), 0 0 5px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .5) !important;
  }
}
