/*
	Star Wars - Générique : feuille de style des deux pages.
	  index.php (body.page-editor) : création d'un générique, génériques du compte, originaux
	  crawl.php (body.page-crawl)  : écran d'accueil du générique et générique lui-même

	Le générique est dimensionné par crawl.js, qui calcule à partir de la taille de l'écran les variables
	--w (largeur du texte), --fs (taille du texte), --p (perspective), --d (longueur du plan incliné),
	--travel et --dur (distance et durée du défilement) : même rendu quel que soit le format de l'écran.
*/

@font-face {
	font-family: "News Cycle"; font-style: normal; font-weight: 400; font-display: swap;
	src: url(fonts/news-cycle-400-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "News Cycle"; font-style: normal; font-weight: 400; font-display: swap;
	src: url(fonts/news-cycle-400-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "News Cycle"; font-style: normal; font-weight: 700; font-display: swap;
	src: url(fonts/news-cycle-700-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "News Cycle"; font-style: normal; font-weight: 700; font-display: swap;
	src: url(fonts/news-cycle-700-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--yellow: #ffe81f;
	--blue: #4bd5ee;
	--text: #e9e6d8;
	--muted: #a7a492;
	--line: rgba(255, 232, 31, .28);
	--panel: rgba(18, 18, 22, .82);
	--font: "News Cycle", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	background: #000;
	color: var(--text);
	font: 400 17px/1.5 var(--font);
	-webkit-tap-highlight-color: transparent;
}

a { color: var(--blue); }
[hidden] { display: none !important; }
svg { fill: currentColor; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Éléments communs ---------- */
.bar {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
	min-height: 52px;
}
.bar-link {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px; padding: 0 8px;
	color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .04em;
}
.bar-link:hover { color: var(--yellow); }

.acct { position: relative; }
.acct summary {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 10px; max-width: 46vw;
	list-style: none; cursor: pointer; font-weight: 700; letter-spacing: .04em;
	border: 1px solid var(--line); border-radius: 999px;
}
.acct summary::-webkit-details-marker { display: none; }
.acct summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct summary img { border-radius: 50%; flex: none; object-fit: cover; }
.acct-menu {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
	min-width: 220px; padding: 6px;
	background: #15151a; border: 1px solid var(--line); border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .7);
}
.acct-menu a {
	display: flex; align-items: center; min-height: 44px; padding: 0 12px;
	color: var(--text); text-decoration: none; border-radius: 8px;
}
.acct-menu a:hover { background: rgba(255, 232, 31, .12); color: var(--yellow); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 18px;
	font: 700 16px/1.1 var(--font); letter-spacing: .06em; text-decoration: none;
	color: var(--yellow); background: rgba(0, 0, 0, .55);
	border: 1px solid var(--line); border-radius: 999px;
	cursor: pointer; touch-action: manipulation;
	transition: background .15s, border-color .15s, transform .1s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { background: rgba(255, 232, 31, .14); border-color: var(--yellow); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-primary { color: #000; background: var(--yellow); border-color: var(--yellow); }
.btn-primary:hover { background: #fff27a; }
.btn-quiet { color: var(--muted); border-color: transparent; background: none; }
.btn-quiet:hover { color: var(--text); background: rgba(255, 255, 255, .08); border-color: transparent; }
.btn-play { min-height: 54px; padding: 0 26px; font-size: 18px; }
.btn-play svg { width: 24px; height: 24px; }

.muted { color: var(--muted); }
.legal { margin: 0; padding: 18px 16px max(18px, env(safe-area-inset-bottom)); text-align: center; font-size: 13px; color: #77756a; }

.toast {
	position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 60;
	max-width: calc(100vw - 32px); padding: 11px 18px;
	color: #000; background: var(--yellow); border-radius: 999px; font-weight: 700; text-align: center;
	opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
	transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Page de création ---------- */
.page-editor {
	min-height: 100vh;
	/* Ciel étoilé : un motif d'étoiles répété */
	background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Ccircle cx='193' cy='232' r='0.53' fill='%23fff' fill-opacity='0.55'/%3E%3Ccircle cx='108' cy='266' r='0.75' fill='%23fff' fill-opacity='0.77'/%3E%3Ccircle cx='149' cy='275' r='0.36' fill='%23fff' fill-opacity='0.42'/%3E%3Ccircle cx='348' cy='289' r='0.91' fill='%23fff' fill-opacity='0.78'/%3E%3Ccircle cx='234' cy='357' r='0.38' fill='%23d6e2ff' fill-opacity='0.62'/%3E%3Ccircle cx='300' cy='212' r='0.44' fill='%23fff' fill-opacity='0.50'/%3E%3Ccircle cx='186' cy='396' r='0.54' fill='%23fff0d6' fill-opacity='0.72'/%3E%3Ccircle cx='145' cy='410' r='1.22' fill='%23fff' fill-opacity='0.96'/%3E%3Ccircle cx='252' cy='113' r='0.42' fill='%23fff' fill-opacity='0.37'/%3E%3Ccircle cx='330' cy='232' r='0.84' fill='%23d6e2ff' fill-opacity='0.62'/%3E%3Ccircle cx='170' cy='186' r='0.61' fill='%23fff' fill-opacity='0.57'/%3E%3Ccircle cx='65' cy='413' r='0.67' fill='%23fff0d6' fill-opacity='0.53'/%3E%3Ccircle cx='260' cy='214' r='0.67' fill='%23fff0d6' fill-opacity='0.47'/%3E%3Ccircle cx='285' cy='129' r='0.48' fill='%23fff' fill-opacity='0.65'/%3E%3Ccircle cx='414' cy='364' r='0.36' fill='%23fff' fill-opacity='0.66'/%3E%3Ccircle cx='66' cy='411' r='0.35' fill='%23d6e2ff' fill-opacity='0.56'/%3E%3Ccircle cx='142' cy='204' r='0.78' fill='%23d6e2ff' fill-opacity='0.60'/%3E%3Ccircle cx='307' cy='240' r='0.46' fill='%23fff' fill-opacity='0.77'/%3E%3Ccircle cx='299' cy='135' r='0.35' fill='%23fff' fill-opacity='0.54'/%3E%3Ccircle cx='333' cy='411' r='0.57' fill='%23fff' fill-opacity='0.66'/%3E%3Ccircle cx='334' cy='98' r='0.35' fill='%23fff' fill-opacity='0.37'/%3E%3Ccircle cx='175' cy='281' r='0.36' fill='%23fff' fill-opacity='0.55'/%3E%3Ccircle cx='223' cy='233' r='0.35' fill='%23fff' fill-opacity='0.32'/%3E%3Ccircle cx='303' cy='30' r='0.73' fill='%23fff0d6' fill-opacity='0.36'/%3E%3Ccircle cx='363' cy='97' r='0.70' fill='%23fff0d6' fill-opacity='0.74'/%3E%3Ccircle cx='103' cy='316' r='0.83' fill='%23fff' fill-opacity='0.39'/%3E%3Ccircle cx='185' cy='280' r='0.99' fill='%23fff' fill-opacity='0.74'/%3E%3Ccircle cx='223' cy='50' r='0.93' fill='%23d6e2ff' fill-opacity='0.66'/%3E%3Ccircle cx='162' cy='289' r='1.19' fill='%23d6e2ff' fill-opacity='0.74'/%3E%3Ccircle cx='238' cy='33' r='0.35' fill='%23fff' fill-opacity='0.34'/%3E%3Ccircle cx='332' cy='151' r='0.51' fill='%23fff' fill-opacity='0.45'/%3E%3Ccircle cx='395' cy='251' r='0.56' fill='%23fff' fill-opacity='0.59'/%3E%3Ccircle cx='132' cy='9' r='0.41' fill='%23d6e2ff' fill-opacity='0.70'/%3E%3Ccircle cx='399' cy='67' r='0.48' fill='%23fff0d6' fill-opacity='0.72'/%3E%3Ccircle cx='80' cy='57' r='0.36' fill='%23fff0d6' fill-opacity='0.46'/%3E%3Ccircle cx='207' cy='291' r='0.42' fill='%23d6e2ff' fill-opacity='0.74'/%3E%3Ccircle cx='222' cy='298' r='0.35' fill='%23fff0d6' fill-opacity='0.46'/%3E%3Ccircle cx='311' cy='237' r='0.81' fill='%23d6e2ff' fill-opacity='0.67'/%3E%3Ccircle cx='121' cy='210' r='0.39' fill='%23d6e2ff' fill-opacity='0.69'/%3E%3Ccircle cx='23' cy='158' r='0.39' fill='%23fff' fill-opacity='0.57'/%3E%3Ccircle cx='119' cy='100' r='0.77' fill='%23fff' fill-opacity='0.67'/%3E%3Ccircle cx='412' cy='2' r='0.35' fill='%23fff' fill-opacity='0.65'/%3E%3Ccircle cx='41' cy='36' r='0.88' fill='%23fff' fill-opacity='0.50'/%3E%3Ccircle cx='46' cy='251' r='0.48' fill='%23fff' fill-opacity='0.49'/%3E%3Ccircle cx='30' cy='146' r='0.41' fill='%23fff0d6' fill-opacity='0.67'/%3E%3Ccircle cx='390' cy='417' r='0.99' fill='%23d6e2ff' fill-opacity='0.35'/%3E%3C/svg%3E");
}

.editor { max-width: 760px; margin: 0 auto; padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); }
.editor-logo { display: block; width: min(46vw, 230px); height: auto; margin: 4px auto 6px; }
.editor h1 { margin: 0; text-align: center; color: var(--yellow); font-size: clamp(26px, 6.4vw, 40px); line-height: 1.15; letter-spacing: .05em; }
.editor .lead { margin: 6px 0 22px; text-align: center; color: var(--muted); }
.editor h2 { margin: 0 0 12px; color: var(--yellow); font-size: 22px; letter-spacing: .08em; }

.card { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 5px; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field > span small { font-weight: 400; letter-spacing: .02em; text-transform: none; margin-left: 6px; }
.field input, .field textarea {
	display: block; width: 100%; padding: 11px 13px;
	/* 16px au minimum : pas de zoom automatique sur iOS */
	font: 700 18px/1.4 var(--font); letter-spacing: .04em; color: var(--yellow);
	background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px;
	appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 3.6em; overflow: hidden; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 232, 31, .18); }
.field-intro textarea { color: var(--blue); font-weight: 400; }
.field-intro textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75, 213, 238, .2); }
.field-title input { text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 2fr; } }

/* Actions du formulaire : collées en bas de l'écran tant que le formulaire est visible */
.form-actions {
	position: sticky; bottom: 0; z-index: 5;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px;
	margin: 0 -16px -16px; padding: 12px 16px max(12px, env(safe-area-inset-bottom));
	background: rgba(12, 12, 15, .94); border-top: 1px solid var(--line); border-radius: 0 0 16px 16px;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.check { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-right: auto; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--yellow); }
.form-reset { display: flex; justify-content: flex-end; margin: -6px 0 10px; }
.form-reset .btn { min-height: 44px; font-size: 15px; }
@media (max-width: 559px) {
	.form-actions { padding-top: 6px; gap: 4px 10px; }
	.form-actions .btn-play { flex: 1 1 100%; min-height: 50px; }
	.check { flex: 1 1 100%; min-height: 40px; }
}

.block { margin-top: 34px; }

.saved { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.saved li { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 0; background: var(--panel); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; }
.saved-main { flex: 1; min-width: 0; padding: 9px 14px; color: var(--text); text-decoration: none; }
.saved-main strong { display: block; color: var(--yellow); letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-main span { display: block; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-main:hover strong { text-decoration: underline; }
.icon-btn {
	flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	color: var(--muted); background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { color: var(--yellow); background: rgba(255, 232, 31, .12); }

.originals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.originals a {
	display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px;
	color: var(--text); text-decoration: none;
	background: var(--panel); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
}
.originals a:hover { border-color: var(--yellow); color: var(--yellow); }
.originals b { flex: none; width: 2.2em; text-align: center; color: var(--blue); font-size: 19px; letter-spacing: .05em; }

/* ---------- Page du générique ---------- */
.page-crawl { overflow: hidden; overscroll-behavior: none; }

.sw { position: fixed; inset: 0; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; }

/* Ciel : deux fois la hauteur de l'écran (même motif répété), pour le mouvement de caméra final */
.stars { position: absolute; left: 0; top: 0; width: 100%; height: 200%; display: block; }
.sw[data-phase="intro"] .stars { visibility: hidden; }
.sw[data-phase="end"] .stars { animation: sw-pan 4.5s cubic-bezier(.45, 0, .3, 1) forwards; }

.film { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.sw.is-playing .film { visibility: visible; }

/* 1. « Il y a bien longtemps… » */
.intro { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 7vw; opacity: 0; }
.intro p {
	margin: 0; max-width: 100%;
	color: var(--blue); font-weight: 400; text-align: left;
	font-size: clamp(17px, min(4.7vw, 8vh), 68px); line-height: 1.35; letter-spacing: .01em;
	overflow-wrap: break-word;
}
.sw[data-phase="intro"] .intro { animation: sw-intro 8.87s linear forwards; }

/* 2. Le logo s'éloigne */
.logo {
	position: absolute; left: 50%; top: 50%;
	width: min(112vw, 185vh); height: auto;
	opacity: 0; transform: translate(-50%, -50%) scale(1);
	will-change: transform, opacity;
}
.sw[data-phase="main"] .logo { animation: sw-logo 9s linear forwards; }

/* 3. Le texte défile sur un plan incliné, articulé sur le bas de l'écran, et s'efface au loin */
.crawl { position: absolute; inset: 0; overflow: hidden; perspective: var(--p, 800px); perspective-origin: 50% 100%; }
.crawl-plane {
	position: absolute; left: 50%; bottom: 0;
	width: var(--w, 80vw); height: var(--d, 200vh); margin-left: calc(var(--w, 80vw) / -2);
	overflow: hidden;
	transform-origin: 50% 100%; transform: rotateX(var(--angle, 35deg));
	-webkit-mask-image: linear-gradient(to top, #000 0, #000 55%, rgba(0, 0, 0, .55) 78%, transparent 98%);
	        mask-image: linear-gradient(to top, #000 0, #000 55%, rgba(0, 0, 0, .55) 78%, transparent 98%);
}
.crawl-text {
	position: absolute; left: 0; right: 0; top: 100%;
	color: var(--yellow); font-weight: 700; font-size: var(--fs, 40px); line-height: 1.4; letter-spacing: .02em;
	text-align: justify; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
	visibility: hidden; will-change: transform;
}
.crawl-text p { margin: 0 0 1.4em; }
.crawl-text .crawl-episode { margin-bottom: .35em; text-align: center; hyphens: none; -webkit-hyphens: none; }
.crawl-text .crawl-title {
	margin-bottom: .9em; text-align: center; hyphens: none; -webkit-hyphens: none;
	font-size: 1.9em; line-height: 1.1; letter-spacing: .02em; text-wrap: balance;
}
.sw[data-phase="main"] .crawl-text { visibility: visible; animation: sw-crawl var(--dur, 80s) linear 6.5s both; }

.sw.is-paused .stars, .sw.is-paused .film * { animation-play-state: paused !important; }

@keyframes sw-intro {
	0%, 7% { opacity: 0; }
	18%, 64% { opacity: 1; }
	75%, 100% { opacity: 0; }
}
/* Éloignement à vitesse constante : la taille apparente varie en 1 / (1 + k·t) */
@keyframes sw-logo {
	0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	10% { transform: translate(-50%, -50%) scale(.465); }
	20% { transform: translate(-50%, -50%) scale(.303); }
	30% { transform: translate(-50%, -50%) scale(.225); }
	40% { transform: translate(-50%, -50%) scale(.179); }
	50% { transform: translate(-50%, -50%) scale(.148); }
	60% { transform: translate(-50%, -50%) scale(.127); }
	70% { opacity: 1; transform: translate(-50%, -50%) scale(.11); }
	80% { transform: translate(-50%, -50%) scale(.098); }
	100% { opacity: 0; transform: translate(-50%, -50%) scale(.08); }
}
@keyframes sw-crawl {
	from { transform: translateY(0); }
	to { transform: translateY(calc(-1 * var(--travel, 4000px))); }
}
@keyframes sw-pan {
	to { transform: translateY(-50%); }
}

/* Commandes de lecture */
.controls {
	position: absolute; z-index: 10;
	top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right));
	display: flex; gap: 4px; padding: 4px;
	background: rgba(10, 10, 12, .78); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
	opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.sw.is-playing.show-controls .controls, .sw.is-playing.is-paused .controls { opacity: 1; visibility: visible; }
.controls button {
	display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0;
	color: #fff; background: none; border: 0; border-radius: 50%; cursor: pointer; touch-action: manipulation;
}
.controls button:hover { background: rgba(255, 255, 255, .14); color: var(--yellow); }
.controls svg { width: 24px; height: 24px; }
.controls .i-play, .controls .i-muted { display: none; }
.sw.is-paused .controls .i-play, .sw.is-muted .controls .i-muted { display: block; }
.sw.is-paused .controls .i-pause, .sw.is-muted .controls .i-sound { display: none; }
.sw.is-playing:not(.show-controls):not(.is-paused) { cursor: none; }

/* Écran d'accueil */
.home {
	position: absolute; inset: 0; z-index: 5;
	display: flex; flex-direction: column;
	overflow-y: auto; overscroll-behavior: contain;
	background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .7));
	user-select: text; -webkit-user-select: text;
	transition: opacity .5s, visibility .5s;
}
.sw.is-playing .home { opacity: 0; visibility: hidden; }

.hero {
	flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 12px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
	text-align: center;
}
.hero-episode { margin: 0 0 4px; color: var(--yellow); font-weight: 700; font-size: clamp(18px, 4.4vw, 28px); letter-spacing: .08em; overflow-wrap: anywhere; }
.hero-title {
	margin: 0 0 clamp(18px, 5vh, 38px); max-width: 16em;
	color: var(--yellow); font-size: clamp(30px, min(9vw, 11vh), 72px); line-height: 1.08; letter-spacing: .04em;
	text-wrap: balance; overflow-wrap: anywhere;
}
.hint { margin: 10px 0 0; color: var(--muted); font-size: 15px; letter-spacing: .04em; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(20px, 6vh, 44px); max-width: 620px; }
.actions .i-on { display: none; }
.actions [aria-pressed="true"] .i-on { display: block; }
.actions [aria-pressed="true"] .i-off { display: none; }
.actions [aria-pressed="true"] { border-color: var(--yellow); background: rgba(255, 232, 31, .16); }
/* Téléphone en mode portrait : les actions sur deux colonnes de même largeur */
@media (max-width: 480px) {
	.actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
	.actions .btn { padding: 0 10px; }
	.btn-play { width: 100%; }
}
/* Écran très bas (téléphone en mode paysage) */
@media (max-height: 430px) {
	.hero-title { margin-bottom: 12px; font-size: clamp(24px, 9vh, 40px); }
	.actions { margin-top: 14px; }
	.hint { display: none; }
	.page-crawl .legal { display: none; }
}

/* Fenêtre du lien court */
.sheet {
	width: min(420px, calc(100vw - 28px)); padding: 20px;
	color: var(--text); background: #15151a; border: 1px solid var(--line); border-radius: 18px;
	text-align: center; user-select: text; -webkit-user-select: text;
}
.sheet::backdrop { background: rgba(0, 0, 0, .72); }
.sheet h2 { margin: 0 0 14px; color: var(--yellow); letter-spacing: .08em; font-size: 22px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input {
	flex: 1; min-width: 0; padding: 0 12px; min-height: 46px;
	font: 700 17px var(--font); letter-spacing: .03em; color: var(--blue);
	background: #000; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px;
}
.qr { display: block; margin: 18px auto; background: #fff; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
	.btn, .toast, .home { transition: none; }
}
