/* Two friends (Cleo's Studio, 2026-11-07): the screen split in two, each side its own game. */
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #F3E6D3; touch-action: none; }
body { position: fixed; inset: 0; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
/* 11/22: the frames STRETCH to fill their half (.half below) instead of height: 100%. Safari/WebKit read 100% as
   the whole screen when the halves were stacked, so on an iPhone held upright each half showed only its top part
   (the doors and the start button cut off) and every finger went to the top half. minmax(0, 1fr) keeps a frame
   from ever widening its track. */
.two { position: absolute; inset: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); display: grid; grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
/* one layer over both halves catches every finger and hands each to its own half (two.js): a browser sends
   all the fingers of a touch to whichever frame the first finger landed in, so the halves can't take them directly */
.shield { position: absolute; inset: 0; z-index: 4; touch-action: none; }
.half { width: auto; height: auto; align-self: stretch; justify-self: stretch; min-width: 0; min-height: 0; border: 0; display: block; background: #4FA9C6; }
/* the seam between the two sides: pink on the left edge, blue on the right, cream in the middle */
.seam { background: linear-gradient(90deg, #F7A9C4 0 2px, #FFF9EE 2px 8px, #8FD8EC 8px); box-shadow: 0 0 10px rgba(46, 50, 83, .25); z-index: 2; }
/* back to one screen: press and hold (little fingers tap it by accident; a hold is on purpose) */
.one { position: absolute; z-index: 5; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border: 0; padding: 0; border-radius: 50%; background: rgba(255, 249, 238, .96); box-shadow: 0 4px 16px rgba(46, 50, 83, .3); cursor: pointer; touch-action: none; }
.one svg { width: 100%; height: 100%; display: block; }
.one .ring { fill: none; stroke: rgba(46, 50, 83, .18); stroke-width: 3; }
.one .fillring { fill: none; stroke: #E8B84A; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; transform: rotate(-90deg); transform-origin: 50% 50%; }
.one .head { fill: #2E3253; opacity: .8; }
.one:focus-visible { outline: 3px solid #2E3253; outline-offset: 3px; }
.one.is-hint { animation: onehint .9s ease-in-out 2; }
@media (prefers-reduced-motion: reduce) { .one.is-hint { animation: none; } }
@keyframes onehint { 50% { transform: translate(-50%, -50%) scale(1.15); } }
/* a phone held upright is too narrow for two side by side: one above the other */
@media (max-aspect-ratio: 1/1) and (max-width: 640px) {
  .two { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 10px minmax(0, 1fr); }
  .seam { background: linear-gradient(180deg, #F7A9C4 0 2px, #FFF9EE 2px 8px, #8FD8EC 8px); }
}
@media (min-width: 1400px) and (min-height: 800px) { .one { width: 76px; height: 76px; } }
