@font-face {
  font-family: Poppins;
  src: url('../assets/fonts/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('../assets/fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('../assets/fonts/poppins-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Aurore;
  src: url('../assets/fonts/la-belle-aurore-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #141d3b;
  --pink: #fbbde5;
  --paper: #fffff0;
  --gutter: clamp(1.5rem, 4.4vw, 5.25rem);
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.6 Poppins, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body, p, h1 { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
.skip {
  position: absolute; z-index: 3; top: .6rem; left: .6rem;
  transform: translateY(-160%); padding: .55rem; color: var(--ink); background: var(--paper);
}
.skip:focus { transform: none; }
.page { display: grid; grid-template-columns: 52% 48%; min-height: 100svh; }
.cover {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto minmax(17rem, 1fr);
  min-width: 0;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink) url('../assets/fond.webp') center top / 980px repeat;
}
.mast {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: clamp(1.3rem, 3vw, 2.9rem) var(--gutter) 0;
}
.brand, .brand img { display: block; }
.brand img { width: clamp(5.2rem, 7.4vw, 7.5rem); height: auto; }
.back { font-size: .85rem; font-weight: 600; }
.back:hover { color: var(--pink); }
.heading {
  position: relative; z-index: 1;
  padding: clamp(2.2rem, 6vh, 4.7rem) var(--gutter) 0;
}
.dates { color: var(--pink); font-size: .86rem; font-weight: 600; }
.dates sup { line-height: 0; }
.poster-title {
  margin-top: .24em;
  font-size: clamp(2.75rem, 5.5vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.04;
}
.poster-title span {
  display: block; color: var(--pink);
  font: 400 1.16em/1.04 Aurore, cursive; letter-spacing: -.05em;
}
.art { position: relative; min-height: 17rem; margin-top: .5rem; }
.art img { position: absolute; display: block; height: auto; pointer-events: none; }
.art .ship {
  bottom: 3%; left: 43%; height: 100%; max-height: 32rem; max-width: 49%;
  object-fit: contain; object-position: bottom; width: auto;
}
.art .cloud-west { bottom: 0; left: 0; width: 37%; max-width: 24rem; }
.art .cloud-east { top: 0; right: 0; width: 20%; max-width: 12.5rem; }
.art .gull { top: 32%; left: 20%; width: 13.5%; max-width: 6.4rem; }
.panel { align-self: center; min-width: 0; padding: clamp(2.2rem,5.5vw,6.6rem); }
.panel:focus { outline: none; }
.paper { max-width: 32rem; margin: 0 auto; }
h1 {
  max-width: 13em;
  font-size: clamp(2.1rem,3.6vw,4rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -.047em;
  overflow-wrap: break-word;
}
.paper > p { margin-top: 1.2rem; }
.intro { color: #41465a; }
form { margin: 1.9rem 0 0; }
label { display: block; font-weight: 600; font-size: .94rem; }
input, select, button { font: inherit; }
input:not([type=checkbox]), select {
  display: block; width: 100%; min-height: 3.15rem;
  padding: .7rem .85rem; margin: .45rem 0 0;
  border: 1px solid #70778c; border-radius: .55rem; background: #fffef8; color: var(--ink);
}
#code { letter-spacing: .12em; }
select { padding-inline-end: 1rem; cursor: pointer; }
button {
  width: 100%; min-height: 3.15rem; margin: 1.2rem 0 0; padding: .7rem 1.1rem;
  border: 1px solid transparent; border-radius: 2rem;
  background: var(--pink); color: var(--ink); font-size: .97rem; font-weight: 600;
  cursor: pointer;
}
button:hover { background: #f6a8d8; }
.scenario-fields { display: grid; align-items: end; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: .95rem; }
.restart { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.45rem; cursor: pointer; }
.restart input { flex: none; accent-color: var(--ink); width: 1.08rem; height: 1.08rem; margin: .2em 0 0; }
.hint { margin: .4rem 0 0 1.78rem; font-size: .875rem; line-height: 1.55; color: #484d5d; }
.exit-form { margin: .7rem 0 0; text-align: center; }
.exit-form button {
  margin: 0; width: auto; min-height: 2.6rem; padding: .5rem .6rem;
  background: transparent; border: none; font-size: .85rem; text-decoration: underline; text-underline-offset: .19em;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #855079; outline-offset: 3px; }
.mast :focus-visible { outline-color: var(--pink); }
.error { padding: .6rem .85rem; border-left: 4px solid #a44465; background: #fce7e6; }
@media (min-width: 701px) and (max-width: 940px) {
  .scenario-fields { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .page { display: block; }
  .cover { display: block; min-height: 14rem; }
  .mast { position: relative; z-index: 2; padding: .9rem var(--gutter) 0; }
  .brand img { width: 4.1rem; }
  .back { font-size: .76rem; }
  .heading { padding: 1.25rem var(--gutter) .95rem; width: 68%; }
  .dates { font-size: .72rem; }
  .poster-title { font-size: clamp(2rem,6.3vw,3.2rem); line-height: 1.02; }
  .art { position: absolute; inset: 3.4rem 0 0; min-height: 0; margin: 0; }
  .art .ship { height: 91%; max-width: 26%; left: auto; right: 5%; bottom: 3%; }
  .art .gull { top: 15%; left: auto; right: 30%; width: 8%; }
  .art .cloud-east { right: 0; top: 18%; width: 12%; }
  .art .cloud-west { width: 14%; left: 0; bottom: 0; max-height: 1.35rem; object-fit: contain; object-position: left bottom; }
  .panel { padding: clamp(1.55rem,6vw,2.55rem) var(--gutter) 2rem; }
  h1 { font-size: clamp(1.85rem,7vw,2.65rem); }
  .paper > p { margin-top: .75rem; }
  form { margin-top: 1.45rem; }
}
@media (max-width: 365px) {
  :root { --gutter: 1.1rem; }
  .cover { min-height: 13.55rem; }
  .heading { width: 72%; }
  .dates { font-size: .66rem; }
  .poster-title { font-size: 1.95rem; }
  .scenario-fields { gap: .8rem; grid-template-columns: 1fr; }
}
