*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#114764,#061c32);color:#eaf8ff;font-family:system-ui,Arial}header{min-height:48px;padding:8px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px}header strong{font-size:23px}header span,footer{font-size:12px;color:#b5d9e9}#layout{display:grid;grid-template-columns:minmax(100px,160px) minmax(280px,510px) minmax(100px,160px);gap:12px;max-width:1100px;margin:auto;padding:0 12px;justify-content:center}#layout[hidden],#desktopNotice[hidden]{display:none}.top,.bottom{grid-column:1/-1;width:min(100%,970px);height:112px;justify-self:center}.ad{position:relative;padding-top:20px;background:#0d3049;border:1px dashed #4c839b;border-radius:5px;overflow:hidden;min-width:0}.ad small{position:absolute;top:3px;left:0;width:100%;text-align:center;font-size:10px;letter-spacing:1px;color:#9cbaca}.ad iframe{display:block;border:0;width:100%;height:100%}.left,.right{height:620px;align-self:start}.game{border:2px solid #78cbe5;border-radius:20px;overflow:hidden;background:#087dbd;height:max(600px,calc(100dvh - 350px));min-width:0}.game iframe{display:block;width:100%;height:100%;border:0}footer{text-align:center;padding:12px;line-height:1.8}a{color:#b8e6fa}#desktopNotice{max-width:650px;margin:12vh auto;padding:24px;text-align:center}@media(max-width:899px){#layout{grid-template-columns:minmax(80px,120px) minmax(280px,1fr) minmax(80px,120px);gap:8px}.top,.bottom{height:112px}.left,.right{height:600px}}@media(max-width:599px){#layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:0 8px}.game{grid-column:1/-1;grid-row:2;height:650px}.left,.right{grid-row:3;height:270px}.top{grid-row:1}.bottom{grid-row:4}header strong{font-size:19px}header span{font-size:11px}}
/* Proportions natives du jeu : 1152 / 1536. */
#layout{grid-template-columns:minmax(80px,160px) minmax(0,510px) minmax(80px,160px)}.game{height:auto;min-height:0;aspect-ratio:3/4;align-self:start}.left,.right{height:auto;min-height:0;align-self:stretch}@media(max-width:899px){#layout{grid-template-columns:minmax(70px,120px) minmax(0,510px) minmax(70px,120px)}}@media(max-width:599px){#layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.game{height:auto;min-height:0;aspect-ratio:3/4}.left,.right{height:270px}}


/* Une seule colonne, y compris en mode ordinateur sur un téléphone. */
html.hopfish-mobile #layout:not([hidden]) {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 0 8px;
}
html.hopfish-mobile #layout > .ad.top {
    order: 0;
    margin: 0 auto 8px;
}
html.hopfish-mobile #layout > .game {
    order: 1;
    position: relative;
    align-self: center;
    width: 100%;
    min-width: 0;
    height: 480px;
    aspect-ratio: auto;
}
html.hopfish-mobile #layout > .game iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
html.hopfish-mobile #layout > .ad.left {
    order: 2;
    align-self: center;
    margin: 8px auto 0;
}
