@font-face {
	font-family: 'Lastik';
	src: url('https://www.chiaracostantino.it/wp-content/uploads/2023/12/Lastik.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'SF Pro Display';
	src: url('https://www.chiaracostantino.it/wp-content/uploads/2023/12/SFProDisplay-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'SF Pro Display';
	src: url('https://www.chiaracostantino.it/wp-content/uploads/2023/12/SFProDisplay-Semibold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}


@import url("https://use.typekit.net/lyg4lah.css");


/*

P22 Mackinac Pro Book
font-family: "p22-mackinac-pro", serif;
font-weight: 400;
font-style: normal;
P22 Mackinac Pro Book Italic
font-family: "p22-mackinac-pro", serif;
font-weight: 400;
font-style: italic;
P22 Mackinac Pro Bold
font-family: "p22-mackinac-pro", serif;
font-weight: 700;
font-style: normal;

*/

.uk-section-primary:before{
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url(/wp-content/uploads/2023/11/noise2.png) repeat 50% fixed;
	opacity: .3;
	background-size: auto;
	pointer-events:none;
	z-index:9999;
}
.rotate{
	animation: rotate 60s linear infinite;
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@media screen and (min-width: 640px) {
	.uk-modal-dialog{
		padding: 0 40px;
	}
}
@media screen and (max-width: 640px) {
	.uk-modal-dialog{
		padding: 0 20px;
	}
	.uk-text-large {
		font-size: 20px;
		line-height: 1.3;
	}
}
/*
.gold-logo {
position: relative;
width: 100%;
max-width: 1200px;
margin-inline: auto;
--mx: 0;
--my: 0;
isolation: isolate;
filter: url(#gold-levels);
}

.gold-logo__base {
display: block;
width: 100%;
height: auto;
}

.gold-logo__shine,
.gold-logo__tint {
position: absolute;
inset: 0;
pointer-events: none;
-webkit-mask: url(/wp-content/uploads/2026/09/chiara-hires.png) center / 100% 100% no-repeat;
mask: url(/wp-content/uploads/2026/09/chiara-hires.png) center / 100% 100% no-repeat;
}

.gold-logo__shine {
background: url(/wp-content/uploads/2026/09/texture-scaled.jpg) no-repeat;
background-size: 150% auto;
background-position: calc(50% + var(--mx) * 30%) calc(50% + var(--my) * 30%);
mix-blend-mode: overlay;
}

.gold-logo__tint {
--tint: #ffd56f;              
background: #002a90; 
mix-blend-mode: color-dodge; 
}
*/
.gold-logo--beveled {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	max-width: 1200px !important;
	height: auto !important;
	aspect-ratio: 1400 / 660 !important;
	min-height: 260px !important;
	margin-inline: auto !important;
	overflow: hidden;
	isolation: isolate;
	background: transparent;
}

.gold-logo--beveled .gold-logo__canvas,
.gold-logo--beveled .gold-logo__fallback {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
}

.gold-logo--beveled .gold-logo__canvas {
	z-index: 2;
	opacity: 0;
	touch-action: auto;
	transition: opacity 240ms ease;
}

.gold-logo--beveled.is-ready .gold-logo__canvas { opacity: 1; }

.gold-logo--beveled .gold-logo__fallback {
	z-index: 1;
	object-fit: contain;
	pointer-events: none;
	transition: opacity 240ms ease;
}

.gold-logo--beveled.is-ready .gold-logo__fallback { opacity: 0; }

.gold-logo--beveled .gold-logo__status {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	padding: 4px 8px;
	color: rgba(35, 24, 12, .72);
	background: rgba(255, 255, 255, .45);
	border-radius: 999px;
	font: 12px/1.2 sans-serif;
	opacity: .8;
	pointer-events: none;
}

.gold-logo--beveled.is-ready .gold-logo__status,
.gold-logo--beveled.is-error .gold-logo__status { display: none; }












/* ===================================================== Arty's Adventure */
@font-face {
  font-family: 'BoldPixels';
  src: local('BoldPixels'),
       url('/wp-content/themes/portfolio23/fonts/boldpixels/BoldPixels.woff2') format('woff2'),
       url('/wp-content/themes/portfolio23/fonts/boldpixels/BoldPixels.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
html.artys-on, html.artys-on body { overflow: hidden !important; height: 100%; overscroll-behavior: none; }

#artys {
  --px: 1;
  --c0: #1b1214; --c6: #b5bcb1; --c8: #fffff2;
  --pink: #ff7b9f; --purple: #7d1ee6; --yellow: #f5f57a;
  position: fixed; inset: 0; z-index: 99999;
  background: #000;
  font-family: 'BoldPixels', monospace;
  color: var(--c8);
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  overscroll-behavior: none;
  cursor: url('/wp-content/themes/portfolio23/arty-runner/cursor-32x32.png') 4 4, auto;
}
#artys * { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; cursor: inherit; }
#artys.artys-nofont { font-family: 'Courier New', monospace; }
/* the stage covers the whole screen (notch included): the JS picks an integer scale and a logical size that fills it */
#artys .artys-root { position: absolute; inset: 0; overflow: hidden; }
#artys .artys-stage {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  background: #000;
  overflow: hidden;
}
#artys .artys-canvas, #artys .artys-fx {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%; max-width: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}
#artys .artys-fx { pointer-events: none; z-index: 20; }
#artys .artys-layer {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  display: none; z-index: 10;
  image-rendering: pixelated;
  /* text and UI stay inside the safe area, the canvas behind them does not */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#artys .artys-layer.on { display: block; }
#artys .artys-t  { font-size: calc(8px * var(--px));  line-height: calc(8px * var(--px));  letter-spacing: 0; }
#artys .artys-t2 { font-size: calc(16px * var(--px)); line-height: calc(16px * var(--px)); }

/* title: subtitle + logo centred as a block, copyright pinned at the bottom */
#artys .artys-title { pointer-events: none; }
#artys .artys-title.on { display: flex; flex-direction: column; align-items: center; justify-content: center; }
#artys .artys-sub {
  width: 100%; margin-bottom: calc(16px * var(--px));
  text-align: center; color: var(--c8);
  text-shadow: calc(1px * var(--px)) calc(1px * var(--px)) 0 var(--c0);
}
/* phones (logical height under 420, class set by the JS): subtitle and credits bigger, they are 1x there */
#artys.artys-phone .artys-sub { font-size: calc(24px * var(--px)); line-height: calc(24px * var(--px)); }
#artys.artys-phone .artys-copy { font-size: calc(16px * var(--px)); line-height: calc(16px * var(--px)); }
#artys .artys-logo {
  width: 100%;
  text-align: center;
  font-size: calc(64px * var(--px)); line-height: calc(48px * var(--px));
  color: var(--pink);
  white-space: nowrap;
}
#artys .artys-logo span {
  display: inline-block;
  text-shadow:
    calc(-1px * var(--px)) calc(-1px * var(--px)) 0 var(--purple),
    calc(-1px * var(--px)) calc(0px * var(--px)) 0 var(--purple),
    calc(-1px * var(--px)) calc(1px * var(--px)) 0 var(--purple),
    calc(0px * var(--px)) calc(-1px * var(--px)) 0 var(--purple),
    calc(0px * var(--px)) calc(1px * var(--px)) 0 var(--purple),
    calc(1px * var(--px)) calc(-1px * var(--px)) 0 var(--purple),
    calc(1px * var(--px)) calc(0px * var(--px)) 0 var(--purple),
    calc(1px * var(--px)) calc(1px * var(--px)) 0 var(--purple),
    calc(1px * var(--px)) calc(2px * var(--px)) 0 var(--purple),
    calc(2px * var(--px)) calc(1px * var(--px)) 0 var(--purple),
    calc(2px * var(--px)) calc(2px * var(--px)) 0 var(--purple),
    calc(1px * var(--px)) calc(3px * var(--px)) 0 var(--purple),
    calc(2px * var(--px)) calc(3px * var(--px)) 0 var(--purple),
    calc(3px * var(--px)) calc(1px * var(--px)) 0 var(--purple),
    calc(3px * var(--px)) calc(2px * var(--px)) 0 var(--purple),
    calc(3px * var(--px)) calc(3px * var(--px)) 0 var(--purple),
    calc(2px * var(--px)) calc(4px * var(--px)) 0 var(--purple),
    calc(3px * var(--px)) calc(4px * var(--px)) 0 var(--purple),
    calc(4px * var(--px)) calc(2px * var(--px)) 0 var(--purple),
    calc(4px * var(--px)) calc(3px * var(--px)) 0 var(--purple),
    calc(4px * var(--px)) calc(4px * var(--px)) 0 var(--purple),
    calc(3px * var(--px)) calc(5px * var(--px)) 0 var(--purple),
    calc(4px * var(--px)) calc(5px * var(--px)) 0 var(--purple),
    calc(5px * var(--px)) calc(3px * var(--px)) 0 var(--purple),
    calc(5px * var(--px)) calc(4px * var(--px)) 0 var(--purple),
    calc(5px * var(--px)) calc(5px * var(--px)) 0 var(--purple),
    calc(-2px * var(--px)) calc(-2px * var(--px)) 0 var(--c8),
    calc(-2px * var(--px)) calc(-1px * var(--px)) 0 var(--c8),
    calc(-2px * var(--px)) calc(0px * var(--px)) 0 var(--c8),
    calc(-2px * var(--px)) calc(1px * var(--px)) 0 var(--c8),
    calc(-2px * var(--px)) calc(2px * var(--px)) 0 var(--c8),
    calc(-1px * var(--px)) calc(-2px * var(--px)) 0 var(--c8),
    calc(-1px * var(--px)) calc(2px * var(--px)) 0 var(--c8),
    calc(0px * var(--px)) calc(-2px * var(--px)) 0 var(--c8),
    calc(0px * var(--px)) calc(2px * var(--px)) 0 var(--c8),
    calc(0px * var(--px)) calc(3px * var(--px)) 0 var(--c8),
    calc(0px * var(--px)) calc(4px * var(--px)) 0 var(--c8),
    calc(1px * var(--px)) calc(-2px * var(--px)) 0 var(--c8),
    calc(1px * var(--px)) calc(4px * var(--px)) 0 var(--c8),
    calc(1px * var(--px)) calc(5px * var(--px)) 0 var(--c8),
    calc(2px * var(--px)) calc(-2px * var(--px)) 0 var(--c8),
    calc(2px * var(--px)) calc(-1px * var(--px)) 0 var(--c8),
    calc(2px * var(--px)) calc(0px * var(--px)) 0 var(--c8),
    calc(2px * var(--px)) calc(5px * var(--px)) 0 var(--c8),
    calc(2px * var(--px)) calc(6px * var(--px)) 0 var(--c8),
    calc(3px * var(--px)) calc(0px * var(--px)) 0 var(--c8),
    calc(3px * var(--px)) calc(6px * var(--px)) 0 var(--c8),
    calc(4px * var(--px)) calc(0px * var(--px)) 0 var(--c8),
    calc(4px * var(--px)) calc(1px * var(--px)) 0 var(--c8),
    calc(4px * var(--px)) calc(6px * var(--px)) 0 var(--c8),
    calc(5px * var(--px)) calc(1px * var(--px)) 0 var(--c8),
    calc(5px * var(--px)) calc(2px * var(--px)) 0 var(--c8),
    calc(5px * var(--px)) calc(6px * var(--px)) 0 var(--c8),
    calc(6px * var(--px)) calc(2px * var(--px)) 0 var(--c8),
    calc(6px * var(--px)) calc(3px * var(--px)) 0 var(--c8),
    calc(6px * var(--px)) calc(4px * var(--px)) 0 var(--c8),
    calc(6px * var(--px)) calc(5px * var(--px)) 0 var(--c8),
    calc(6px * var(--px)) calc(6px * var(--px)) 0 var(--c8);
  animation: artys-bob 1.7s step-end infinite;
  animation-delay: calc(var(--i) * -0.13s);
}
#artys .artys-logo span.sp { width: calc(16px * var(--px)); }
/* the two lines are staggered like the reference, so the silhouette on the last E has free sky above it */
#artys .artys-logo .artys-line:first-child { transform: translateX(calc(-32px * var(--px))); }
#artys .artys-logo .artys-line:last-child  { transform: translateX(calc(32px * var(--px))); }
@keyframes artys-bob {
  0%     { transform: translateY(calc(-7px * var(--px))); }
  12.5%  { transform: translateY(calc(-5px * var(--px))); }
  25%    { transform: translateY(0); }
  37.5%  { transform: translateY(calc(5px * var(--px))); }
  50%    { transform: translateY(calc(7px * var(--px))); }
  62.5%  { transform: translateY(calc(5px * var(--px))); }
  75%    { transform: translateY(0); }
  87.5%  { transform: translateY(calc(-5px * var(--px))); }
  100%   { transform: translateY(calc(-7px * var(--px))); }
}
#artys .artys-copy {
  position: absolute; left: 0; width: 100%; bottom: calc(16px * var(--px) + env(safe-area-inset-bottom));
  text-align: center; color: var(--c8);
  text-shadow: calc(1px * var(--px)) calc(1px * var(--px)) 0 var(--c0);
  pointer-events: auto;
}

/* instructions panel: the frame is drawn on the canvas (9-slice), this layer holds the text and the button, positioned by the JS */
#artys .artys-howto { pointer-events: none; }
#artys .artys-panel {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(12px * var(--px)) calc(12px * var(--px));
  text-align: center; color: var(--c0);
}
#artys .artys-panel-title { font-size: calc(32px * var(--px)); line-height: calc(32px * var(--px)); }
#artys .artys-panel-row { display: flex; align-items: center; gap: calc(12px * var(--px)); width: 100%; padding: 0 calc(8px * var(--px)); }
#artys .artys-tap { flex: none; width: calc(52px * var(--px)); height: calc(56px * var(--px)); image-rendering: pixelated; }
#artys .artys-panel-text { flex: 1; text-align: left; font-size: calc(24px * var(--px)); line-height: calc(28px * var(--px)); white-space: normal; }
#artys .artys-play {
  pointer-events: auto;
  width: calc(192px * var(--px)); height: calc(64px * var(--px));
  border: 0; background: transparent url('/wp-content/themes/portfolio23/arty-runner/UI/UI Big Play Button.png') 0 0 / calc(384px * var(--px)) calc(64px * var(--px)) no-repeat;
  image-rendering: pixelated;
  font: inherit; color: var(--c0); font-size: calc(24px * var(--px)); line-height: calc(64px * var(--px));
  -webkit-appearance: none; appearance: none; outline: 0;
}
#artys .artys-play span { display: block; position: relative; top: calc(-2px * var(--px)); }
#artys .artys-play.pressed { background-position: calc(-192px * var(--px)) 0; }
#artys .artys-play.pressed span { top: calc(2px * var(--px)); }

/* portrait gate */
#artys .artys-rotate { background: #000; }
#artys .artys-msg { position: absolute; left: 0; width: 100%; top: 60%; text-align: center; }
#artys .artys-phone {
  position: absolute; left: 50%; top: 40%;
  width: calc(12px * var(--px)); height: calc(20px * var(--px));
  margin-left: calc(-6px * var(--px)); margin-top: calc(-10px * var(--px));
  border: calc(2px * var(--px)) solid var(--c8);
  animation: artys-rot 1.6s steps(1, end) infinite;
}
#artys .artys-phone::after {
  content: ''; position: absolute; left: 50%; bottom: calc(1px * var(--px));
  width: calc(2px * var(--px)); height: calc(2px * var(--px)); margin-left: calc(-1px * var(--px));
  background: var(--c8);
}
@keyframes artys-rot {
  0%  { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
}

/* debug */
#artys .artys-debug { pointer-events: none; z-index: 30; }
/* HUD layer: pause and mute buttons left of the hearts (round button of buttons-volume-radio.png at 2x, pressed = second frame, 1x pixel icons drawn by the JS) */
#artys .artys-hud { pointer-events: none; }
#artys .artys-mute, #artys .artys-pause, #artys .artys-resume {
  position: absolute; pointer-events: auto; left: 0; top: 0;   /* placed by the JS, left of the hearts */
  width: calc(36px * var(--px)); height: calc(40px * var(--px)); padding: 0; border: 0;
  background: transparent url('/wp-content/themes/portfolio23/arty-runner/UI/buttons-volume-radio.png') calc(-56px * var(--px)) calc(-104px * var(--px)) / calc(298px * var(--px)) calc(392px * var(--px)) no-repeat;
  image-rendering: pixelated; -webkit-appearance: none; appearance: none; outline: 0;
}
#artys .artys-mute:active, #artys .artys-pause:active, #artys .artys-resume:active { background-position: calc(-120px * var(--px)) calc(-104px * var(--px)); }
#artys .artys-mute span, #artys .artys-pause span, #artys .artys-resume span {
  position: absolute; left: calc(10px * var(--px)); top: calc(11px * var(--px)); width: calc(16px * var(--px)); height: calc(16px * var(--px));
  background: transparent center / 100% 100% no-repeat; image-rendering: pixelated;
}
#artys .artys-mute:active span, #artys .artys-pause:active span, #artys .artys-resume:active span { top: calc(13px * var(--px)); }

/* pause: black overlay at 50%, PAUSE in the subtitle style, a small play button under it */
#artys .artys-paused { pointer-events: none; background: rgba(0, 0, 0, 0.5); z-index: 12; }
#artys .artys-paused.on { display: flex; align-items: center; justify-content: center; }
#artys .artys-paused-box { display: flex; flex-direction: column; align-items: center; gap: calc(16px * var(--px)); }
#artys .artys-paused-title { width: auto; margin: 0; }
#artys .artys-resume { position: relative; }

/* game over: icon buttons (first-row frame of buttons-volume-radio.png at 2x, pressed = second frame, icon at 1x on top with 10 px of padding) and, on desktop, the link with a copy control (title and score are drawn on the canvas) */
#artys .artys-over { pointer-events: none; }
#artys .artys-over-box { position: absolute; left: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: calc(12px * var(--px)); }
#artys .artys-over-btns { gap: calc(24px * var(--px)); }
#artys .artys-icon {
  position: relative; pointer-events: auto; width: calc(52px * var(--px)); height: calc(56px * var(--px)); padding: 0; border: 0;
  background: transparent url('/wp-content/themes/portfolio23/arty-runner/UI/buttons-volume-radio.png') calc(-22px * var(--px)) calc(-22px * var(--px)) / calc(298px * var(--px)) calc(392px * var(--px)) no-repeat;
  image-rendering: pixelated; -webkit-appearance: none; appearance: none; outline: 0;
}
#artys .artys-icon:active { background-position: calc(-118px * var(--px)) calc(-22px * var(--px)); }
#artys .artys-icon span {
  position: absolute; left: calc(10px * var(--px)); top: calc(11px * var(--px)); width: calc(32px * var(--px)); height: calc(32px * var(--px));
  background: transparent center / 100% 100% no-repeat; image-rendering: pixelated;
}
#artys .artys-icon:active span { top: calc(13px * var(--px)); }
#artys .artys-replay span { background-image: url('/wp-content/themes/portfolio23/arty-runner/UI/rigioca-icon.png'); }
#artys .artys-share span { background-image: url('/wp-content/themes/portfolio23/arty-runner/UI/condividi-icon.png'); }
/* initials: typed on the canvas (three blinking underscores in the logo style); this invisible input only brings up the keyboard on phones */
#artys .artys-key { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; font-size: 16px; pointer-events: none; }
#artys .artys-over-btns { display: none; }
#artys .artys-over-btns.on { display: flex; }

/* phones: tighter game-over stack */
#artys.artys-phone .artys-over-box { gap: calc(6px * var(--px)); }

#artys .artys-link {
  display: none; align-items: center; gap: calc(8px * var(--px)); padding: calc(6px * var(--px)) calc(10px * var(--px));
  background: var(--c8); color: var(--c0); font-size: calc(12px * var(--px)); line-height: calc(12px * var(--px)); user-select: text; -webkit-user-select: text;
}
#artys .artys-link.on { display: flex; }
#artys .artys-copylink { pointer-events: auto; width: calc(14px * var(--px)); height: calc(14px * var(--px)); padding: 0; border: 0; background: transparent; color: var(--c0); -webkit-appearance: none; appearance: none; outline: 0; }
#artys .artys-copylink svg { display: block; width: 100%; height: 100%; image-rendering: auto; }
#artys .artys-copylink:active { transform: translateY(calc(1px * var(--px))); }
#artys .artys-toast { min-height: calc(8px * var(--px)); color: var(--c8); text-shadow: calc(1px * var(--px)) calc(1px * var(--px)) 0 var(--c0); }

#artys .artys-fps { position: absolute; right: calc(4px * var(--px)); bottom: calc(4px * var(--px)); color: var(--yellow); }

/* the finale (the living room): the replay button alone in the bottom right corner (Over.layout), no share; the four frames on the wall
   are the project links (Home.links places them), shown with the buttons; the picture fills the frame's grey inside */
#artys .artys-over.artys-finale .artys-over-box { left: auto; width: auto; }
#artys .artys-over.artys-finale .artys-share { display: none; }
#artys .artys-frame { position: absolute; display: none; pointer-events: auto; }
#artys .artys-over.artys-links .artys-frame { display: block; }
#artys .artys-frame img { position: absolute; display: block; image-rendering: pixelated; }
