/* font */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@106,500;125,800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Emoji&display=swap");

:root {
  --c2: #33f;
  --c3: #afe;
}

html {
  font-family: "Archivo", sans-serif;
}
h1,
h2,
h3 {
  font-weight: bold;
  font-variation-settings: "wdth" 125, "wght" 800;
}
.toggly_box > text {
  font-family: "Noto Emoji", sans-serif;
}

/* en / jp */

.text_jp {
  display: none;
  font-size-adjust: cap-height from-font;
  line-height: 1em;
}

/* body */
body {
  image-rendering: optimizeSpeed;
}
body::selection {
  color: var(--c3);
  background-color: var(--c2);
}
body > section {
  padding: 1svw;
}

/* a */

a {
  margin: 0 0.2em 0 0;
  padding: 0 0.1em;
  font-size: 0.9em;
  /* fashion */
  font-weight: bold;
  text-decoration: underline;
  background: var(--c1);
  color: var(--bg);
  outline: var(--outline-c1);
  outline-offset: -0.1em;
}
a:hover {
  /* fashion */
  background: var(--bg);
  color: var(--c1);
}

/* footer */

footer {
  display: flex;
  margin: 0 0 8svh 0;
  padding: 0.3em;
  justify-content: center;
}
footer > #face,
footer > #share {
  display: inline-block;
  height: 3.5em;
  aspect-ratio: 1/1;
}
footer > #face {
  background: url(./p/m/20251118.png) center/cover;
  outline: var(--outline-c1);
  image-rendering: optimizeQuality;
}
footer > p {
  display: inline-block;
  margin: 0 0.5em;
}
footer > a /* #share */ {
  background: var(--bg);
  outline: none;
}
footer > #share {
  background: url(../shareoz.PNG) center/cover, #000;
  image-rendering: pixelated;
}
footer > #share:hover {
  background: url(../shareoz.PNG) center/cover, var(--c2);
  image-rendering: pixelated;
}

/* header */

header {
  display: flex;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 2; /* beyond everything */
  padding: 0.1em;
  text-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  /* fashion */
  background: var(--bga);
  color: var(--c1);
  border-bottom: var(--outline-c1);
}

header > div {
  display: inline-block;
}

/* logo */

#logo {
  display: inline-block;
  padding-right: min(1em, 0.3svw);
  max-width: 100svw;
  /* feed children */
  position: relative;
}

#logo > h1 {
  display: inline-block;
  vertical-align: middle;
  /* fashion */
  font-size: 1.8em;
}

#logo > img {
  position: relative;
  top: 20%;
  height: 1.8rem;
}

/* standup, enjp, sunmoon, rocket */

#checkboxes {
}

.toggly_box {
  display: inline-block;
  margin: 0.2em 0.1em;
  padding: 0.12rem;
  /* fashion */
  outline: var(--outline-c1);
}
.toggly_box > text {
  display: inline-block;
  margin: 0 0.2em;
  /* FLAVOR */
  vertical-align: 0.4em;
}
.toggly_box input.toggly {
  /* FLAVOR */
  --toggly-height: 2rem;
  border-radius: 0.2em;
}
.toggly_box input.toggly::before {
  /* FLAVOR */
  border-radius: 0.12em;
}
#enjp:checked.toggly {
  background: #3af;
}
#sunmoon:checked.toggly {
  background: #fc3;
}
#standup:checked.toggly {
  background: #f8c;
}
/*
.toggly_box input:checked.toggly::before {
  FLAVOR
}*/

#rocket_box {
  border-radius: 100%;
}
#rocket {
  width: calc(var(--toggly-height) * 1);
  border-radius: 100%;
}
#rocket:checked {
  background: inherit;
}
#rocket::before,
#rocket:checked::before,
#rocket:checked:hover::before {
  transform: none;
}
#rocket::before {
  border-radius: 100%;
  clip-path: polygon(50% 100%, 80% 15%, 20% 15%);
}
#rocket:checked::before {
  clip-path: polygon(50% 0%, 80% 85%, 20% 85%);
}
#rocket:hover {
  cursor: ns-resize;
}

/* section header */

h3 {
  margin: 3em 0 0.4rem 0;
  text-align: center;
  font-size: 1rem;
}

/* note */

.note {
  margin: 0 0.65em 0.35em 0.3em;
  padding: 0.3rem;
  text-align: center;
  text-wrap: pretty;
  font-size: 0.9em;
  /*
  / fashion /
  background: var(--bg);
  outline: var(--outline-c1);
  border-radius: 0.4em;
  box-shadow: 0.3rem 0.3rem 0 var(--c1);
*/
}
.i {
  font-style: italic;
  opacity: 0.75;
}
.i::before {
  content: "<";
}
.i::after {
  content: ">";
}

/* pulldown */

.pulldown {
  margin: 0.2rem 0;
  text-align: left;
  outline: var(--outline-c1);
}
.pulldown_head {
  display: flex;
  justify-content: space-between;
  padding: 0 0.2rem;
  cursor: pointer;
}
.pulldown_head:hover {
  background: var(--c2);
}
.pulldown_head > * {
  display: inline-block;
  font-size: 0.8em;
}
.pulldown_head > div::before {
  content: "╋";
}
.pulldown:has(input:checked) > label > .pulldown_head > div::before {
  content: "━";
}
.pulldown_head > h5 {
  margin: 0.2rem 0;
  user-select: none;
  transition: background 0.3s;
}

/* pulldown content */

.pulldown > label > input {
  appearance: none;
  display: none;
}
.pulldown > article {
  max-height: 0;
  overflow-y: auto;
  transition: max-height 0.3s;
}
.pulldown:has(input:checked):has(#syntax) > article {
  max-height: min(26rem, 60svh);
}
.pulldown:has(input:checked):has(#notice) > article {
  max-height: min(12rem, 60svh);
}

/* house/couch header */

h2 {
  appearance: none;
  /* fashion */
  font-size: 1.8rem;
  font-weight: bold;
}
h2 > span.h4 {
  font-size: 1.1rem;
}
h2 + h4 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

/* oc */

.oc {
  display: block;
  flex-grow: 1;
  order: 0;
  /* fashion */
  /* background-position: center 28%; <- default at script.js 32. changes in oclist.js */
  background-size: cover;
  transition: all 0.24s ease-in-out; /* faster than setTimeout at script.js 74, says "241" */
  /* feed children */
  position: relative;
  overflow: hidden;
}
.oc:has(input:checked) {
  flex-grow: 0; /* ? */
}
.oc:hover {
  flex-grow: 1.08;
  cursor: grab;
}
.oc:has(input:checked):hover {
  cursor: grabbing;
}
.oc:has(input:checked) {
  min-width: 100%;
}
.oc::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
}

/* oc content */

.oc > input {
  appearance: none;
  display: none;
}
.oc > p {
  position: absolute;
  margin: 0.4em;
  z-index: 1; /* beyond gradient */
}
.oc > p:has(.name) {
  user-select: none;
  appearance: none;
}

/* house / couch */

.house,
.couch {
  margin: 0 0 1rem 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

/* house oc */

.house > .oc:has(input:checked) {
  order: -1;
}
#solo.house > .oc:has(input:checked) {
  order: 0; /* not -1 */
}
.house > .oc {
  height: max(10rem, 18svw);
}
.house > .oc:has(input:checked):hover {
  height: max(10.6rem, 18.6svw);
}
.house > .oc {
  min-width: max(4rem, calc(100% / 6.2)); /* 6.2 = (max people in 1 lane) + 0.2 */
}
.house > .oc:has(input:checked)::after {
  background: linear-gradient(#4562, #4566);
}
.house_mars > .oc:has(input:checked)::after {
  background: linear-gradient(#f403, #f017);
}
.house_venus > .oc:has(input:checked)::after {
  background: linear-gradient(#f703, #f407);
}
.house_uranus > .oc:has(input:checked)::after {
  background: linear-gradient(#0c93, #0e07);
}
.house_mercury > .oc:has(input:checked)::after {
  background: linear-gradient(#04f3, #08f7);
}
.house_neptune > .oc:has(input:checked)::after {
  background: linear-gradient(#00f3, #05f7);
}
.house_saturn > .oc:has(input:checked)::after {
  background: linear-gradient(#70f3, #80f7);
}
.house_pluto > .oc:has(input:checked)::after {
  background: linear-gradient(#f033, #f087);
}

/* house oc content */

.house > .oc > p {
  visibility: hidden;
  /* fashion */
  opacity: 0;
}
.house > .oc > p:has(.name) {
  bottom: 0;
  left: 0;
}
.house > .oc > p:has(a) {
  top: 0;
  right: 0;
}
.house > .oc:has(input:checked) > p {
  visibility: visible;
  /* fashion */
  opacity: 1;
}
.house > .oc > p > .name {
  font-size: 1.3rem;
  font-weight: bold;
}

/* couch oc content */

.couch > .oc {
  height: 2rem;
  min-width: max(4rem, calc(100% / 6.2)); /* 8.2 = (max people in 1 lane) + 0.2 */
  /* outline: var(--outline-c1); at 53 in script.js*/
}
.couch > .oc:has(input:checked) {
  height: 4rem;
  min-width: 100%;
  order: 0;
}
.couch > .oc:has(input:checked):hover {
  height: 4.6rem;
}
.couch > .oc > p:has(.name) {
  top: 0;
  left: 0;
}
.couch > .oc > p:has(a) {
  top: 0;
  right: 0;
  visibility: hidden;
  opacity: 0;
}
.couch > .oc:has(input:checked) > p:has(a) {
  visibility: visible;
  opacity: 1;
}
.couch > .oc > p > .name {
  font-size: 1rem;
  font-weight: normal;
}
.couch > .oc > p > .bio {
  visibility: hidden;
  opacity: 0;
}
.couch > .oc:has(input:checked) > p > .name {
  font-size: 1.3rem;
  font-weight: bold;
}
.couch > .oc:has(input:checked) > p > .bio {
  visibility: visible;
  opacity: 1;
}

/* all name list */

#findbyname {
  margin: 0;
  padding: 0.1em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.2em 0.1em;
  /* fashion */
  color: var(--c1);
  background: var(--bg);
  outline: var(--outline-c1);
}
#findbyname > hr {
  width: 2em;
  flex-grow: 1;
}
#findbyname > span {
  display: inline-block;
}
#findbyname > span > a {
  background: var(--bg);
  color: var(--c1);
  outline: var(--outline-bg);
  cursor: zoom-in;
}
#findbyname > span > a:hover {
  background: var(--c1);
  color: var(--bg);
}
