/*
  KLiCK, Rewind

  1. Variables and base
  2. Window frame, banner, ticker
  3. Page layout and side boxes
  4. Text, tables and buttons
  5. Page parts (bio, news, schedule, topic tables)
  6. Albums and gallery
  7. Stamps and gifs
  8. Winter settings and Christmas
  9. Mouse cursors
*/


/* ========== 1. Variables and base ========== */

:root {
  --fog: #b9a6ec;
  --ice: #e6dcff;
  --lilac: #b48cf0;
  --dusk: #7b4fd0;
  --deep: #3d2a82;
  --night: #2a1a66;
  --rose: #ff8ad0;
  --mint: #5ee0f0;
  --ink: #231552;
  --link: #4a22b0;
}

* {
  margin: 0;
  padding: 0;
}

body {
  background: var(--fog) url("../img/wallpaper-mall.jpg") center top / cover fixed;
  color: var(--deep);
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  padding: 12px 0 30px;
}

/* film grain and scanlines over the whole page */
body:after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  pointer-events: none;
  opacity: .1;
  background-image:
    repeating-linear-gradient(0deg, rgba(42, 26, 102, .35) 0, rgba(42, 26, 102, .35) 1px, transparent 1px, transparent 3px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .7  0 0 0 .6 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
}

a:link {
  color: var(--link);
  text-decoration: underline;
}

a:visited {
  color: #6b2f9e;
}

a:hover {
  color: #fff;
  background: #5a2fc0;
  text-decoration: none;
}

img {
  border: 0;
}

hr {
  border: 0;
  height: 2px;
  background: var(--lilac);
  margin: 8px 0;
}

p {
  margin-bottom: 8px;
}

::selection {
  background: var(--rose);
  color: var(--night);
}

.small {
  font-size: 10px;
  color: var(--deep);
}

.center {
  text-align: center;
}

.hidden {
  display: none;
}

.gap-sm {
  margin-top: 4px;
}

.gap {
  margin-top: 8px;
}

.blink {
  animation: blink 1.6s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}


/* ========== 2. Window frame, banner, ticker ========== */

#wrap {
  position: relative;
  width: 860px;
  margin: 0 auto;
  text-align: left;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(7px) saturate(1.3);
  backdrop-filter: blur(7px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .85);
  outline: 1px solid rgba(61, 42, 130, .55);
  box-shadow: 0 10px 40px rgba(61, 42, 130, .45), inset 0 0 0 1px rgba(255, 255, 255, .4);
}

#titlebar {
  position: relative;
  padding: 3px 6px;
  background: linear-gradient(180deg, #8f6be8 0%, #6a3fd0 50%, #4a2aa8 51%, #6a49d8 100%);
  border-bottom: 1px solid var(--night);
  color: #fff;
  font: bold 11px Tahoma, Verdana, sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 1px 1px var(--night);
}

#titlebar .tbicon {
  vertical-align: -3px;
  margin: 0 3px 0 -2px;
}

#titlebar .btns {
  position: relative;
  z-index: 1;
  float: right;
}

#titlebar .btns span {
  display: inline-block;
  width: 14px;
  height: 12px;
  margin-left: 2px;
  background: var(--ice);
  border: 1px solid;
  border-color: #fff var(--deep) var(--deep) #fff;
  color: var(--night);
  font-size: 9px;
  line-height: 12px;
  text-align: center;
}

/* shine across the top half of glossy parts */
#titlebar:before,
.box h3:before,
.btn:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .12));
  pointer-events: none;
}

#banner {
  position: relative;
  height: 180px;
  overflow: hidden;
  text-align: center;
  background: #7a4fd6 no-repeat center top / cover;
  border-bottom: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 -18px 30px rgba(94, 224, 240, .28);
}

#banner.b-pool { background-image: url("../img/banner-pool.jpg"); }
#banner.b-tv { background-image: url("../img/banner-tv.jpg"); }
#banner.b-wire { background-image: url("../img/banner-wire.jpg"); }
#banner.b-hall { background-image: url("../img/banner-hall.jpg"); }
#banner.b-glitch { background-image: url("../img/banner-glitch.jpg"); }
#banner.b-news { background-image: url("../img/banner-news.jpg"); }
#banner.b-schedule { background-image: url("../img/banner-schedule.jpg"); }

/* gloss on the top of the banner */
#banner:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .03));
  pointer-events: none;
}

/* a band of light that drifts slowly across */
#banner:after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 300%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .18) 25%, transparent 50%, rgba(255, 138, 208, .14) 75%, transparent 100%);
  animation: banner-drift 28s linear infinite;
  pointer-events: none;
}

@keyframes banner-drift {
  from { transform: translateX(0); }
  to { transform: translateX(33%); }
}

#banner h1 {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  font-size: 0;
  line-height: 0;
  color: #fff;
}

#banner h1 .logo {
  position: relative;
  display: inline-block;
}

#banner h1 .titleimg {
  display: block;
  width: 315px;
  height: 62px;
  filter: drop-shadow(0 2px 5px rgba(44, 46, 118, .55)) drop-shadow(0 0 10px rgba(255, 255, 255, .35));
}

#banner .tag {
  position: relative;
  z-index: 3;
  display: inline-block;
  margin-top: 10px;
  padding: 3px 18px 4px;
  background: linear-gradient(180deg, rgba(143, 107, 232, .88) 0%, rgba(106, 63, 208, .88) 50%, rgba(74, 42, 168, .9) 51%, rgba(106, 73, 216, .9) 100%);
  border: 1px solid #fff;
  border-radius: 14px;
  box-shadow: 0 0 14px rgba(255, 138, 208, .8), 0 2px 6px rgba(42, 26, 102, .55), inset 0 0 0 1px rgba(255, 255, 255, .35);
  color: #fff;
  font: bold 14px Verdana, Tahoma, sans-serif;
  letter-spacing: 3px;
  text-transform: lowercase;
  text-shadow: 0 1px 2px var(--night), 0 0 8px rgba(42, 26, 102, .9);
  animation: tag-glow 3.5s ease-in-out infinite alternate;
}

#banner .tag:before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 1px;
  height: 46%;
  border-radius: 12px 12px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08));
  pointer-events: none;
}

@keyframes tag-glow {
  from { box-shadow: 0 0 10px rgba(255, 138, 208, .6), 0 2px 6px rgba(42, 26, 102, .55), inset 0 0 0 1px rgba(255, 255, 255, .35); }
  to { box-shadow: 0 0 22px rgba(94, 224, 240, .95), 0 2px 6px rgba(42, 26, 102, .55), inset 0 0 0 1px rgba(255, 255, 255, .55); }
}

#ticker {
  height: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #4a2aa8, #2a1a66 55%, #3a2488);
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  color: #9af2ff;
  font: 11px "Courier New", monospace;
}

#ticker .tickwrap {
  position: relative;
  height: 20px;
  overflow: hidden;
  white-space: nowrap;
}

/* the position is set from js/main.js, so the message carries on between pages */
#ticker .track {
  position: absolute;
  left: 0;
  top: 2px;
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  transform: translateX(110vw);
}


/* ========== 3. Page layout and side boxes ========== */

table.layout {
  width: 100%;
  border-collapse: collapse;
}

table.layout td {
  padding: 0;
  vertical-align: top;
}

td.left,
td.right {
  background: rgba(255, 255, 255, .3);
}

td.left {
  width: 140px;
  border-right: 1px solid rgba(255, 255, 255, .6);
}

td.right {
  width: 210px;
  border-left: 1px solid rgba(255, 255, 255, .6);
}

td.main {
  padding: 14px 18px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

td.main,
td.main p,
td.main li {
  color: var(--ink);
}

td.main p {
  margin-bottom: 12px;
}

.box {
  margin: 8px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 2px 8px rgba(61, 42, 130, .28);
}

.box h3 {
  position: relative;
  overflow: hidden;
  padding: 3px 7px;
  background: linear-gradient(180deg, #c9a8ff 0%, #a070f0 50%, #8a55e0 51%, #b48cf8 100%);
  border-bottom: 1px solid #5a3cb8;
  color: #fff;
  font: bold 11px Tahoma, Verdana, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px var(--night);
}

.box .in {
  padding: 6px 8px;
}

.box .in,
.box .small {
  color: var(--ink);
}

.box a:link {
  color: var(--link);
}

.box img.pic {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--dusk);
}

ul.nav {
  list-style: none;
}

ul.nav li {
  border-bottom: 1px solid rgba(180, 140, 240, .35);
}

ul.nav li a {
  display: block;
  padding: 5px 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}

ul.nav li a:before {
  content: "\00BB  ";
  color: var(--rose);
}

ul.nav li a:hover,
ul.nav li.on a {
  background: linear-gradient(180deg, #d2b4ff 0%, #a070f0 50%, #8a55e0 51%, #b48cf8 100%);
  color: #fff;
  text-shadow: 0 1px 1px var(--deep);
}

.counter {
  text-align: center;
}

.counter .digits {
  display: inline-block;
  padding: 1px 5px;
  background: linear-gradient(180deg, #001a2a, #003a4a);
  border: 1px solid var(--mint);
  box-shadow: 0 0 6px rgba(94, 224, 240, .6);
  color: var(--mint);
  font: bold 14px "Courier New", monospace;
  letter-spacing: 3px;
}

.upd {
  padding: 5px 0;
  border-bottom: 1px dotted var(--lilac);
}

.upd:last-child {
  border-bottom: 0;
}

.upd b {
  color: var(--night);
  font-size: 11px;
}

#footer {
  padding: 6px;
  background: linear-gradient(180deg, #4a2aa8, #2a1a66);
  border-top: 1px solid rgba(255, 255, 255, .6);
  color: var(--lilac);
  font-size: 10px;
  text-align: center;
}

#footer a {
  color: var(--mint);
}

.footlogo,
.footlogo:hover {
  display: inline-block;
  margin: 2px 0 4px;
  background: none;
  line-height: 0;
}

.footlogo img {
  filter: drop-shadow(0 0 6px rgba(123, 79, 208, .9));
}


/* ========== 4. Text, tables and buttons ========== */

h2 {
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 2px dotted var(--lilac);
  color: var(--dusk);
  font: italic bold 22px Georgia, "Times New Roman", serif;
  text-shadow: 2px 0 0 rgba(255, 138, 208, .6);
}

h4 {
  margin: 18px 0 8px;
  padding: 3px 8px;
  background: linear-gradient(180deg, #c9a8ff 0%, #a070f0 50%, #8a55e0 51%, #b48cf8 100%);
  border: 1px solid #5a3cb8;
  color: #fff;
  font: bold 11px Tahoma, Verdana, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px var(--night);
}

.date {
  color: #5a3cb8;
  font: bold 10px "Courier New", monospace;
}

.post {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--lilac);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, .45);
}

table.data th {
  padding: 3px 6px;
  background: linear-gradient(180deg, #d2b4ff, #a070f0);
  border: 1px solid var(--dusk);
  color: #fff;
  font: bold 10px Tahoma, sans-serif;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
  text-shadow: 0 1px 1px var(--deep);
}

table.data td {
  padding: 8px;
  border: 1px solid rgba(180, 140, 240, .45);
}

table.data td .small {
  font-size: 11px;
}

table.data tr.alt td {
  background: rgba(230, 220, 255, .45);
}

td.main table.data td[align="center"] img.cover {
  width: 112px;
  height: 112px;
  margin-bottom: 4px;
}

.btn {
  position: relative;
  overflow: hidden;
  padding: 3px 14px;
  background: linear-gradient(180deg, #7fe8f5 0%, #3fc2ee 50%, #1fa6e0 51%, #5fd8f4 100%);
  border: 1px solid #1a7ab8;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(20, 90, 138, .5), inset 0 -2px 4px rgba(255, 255, 255, .35);
  color: #fff;
  font: bold 11px Tahoma, Verdana, sans-serif;
  text-shadow: 0 1px 1px #0f4a78;
  cursor: pointer;
}

a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active {
  color: #fff;
  text-decoration: none;
}

.btn:active {
  background: linear-gradient(180deg, #1fa6e0, #5fd8f4);
}

a.btn:hover {
  background: linear-gradient(180deg, #ffb0e4 0%, #ff8ad0 50%, #d8509f 51%, #ff8ad0 100%);
  text-shadow: 0 1px 1px #7a1f5a;
}

.read-more {
  display: inline-block;
  margin-top: 5px;
}

.b88 {
  position: relative;
  overflow: hidden;
  display: block;
  width: 88px;
  height: 31px;
  margin: 4px auto;
  background: linear-gradient(90deg, #7b4fd0, #ff8ad0);
  border: 1px solid var(--deep);
  box-shadow: 0 1px 3px rgba(61, 42, 130, .5);
  font: bold 9px/31px Tahoma, sans-serif;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px 0 var(--night);
}

a.b88,
a.b88:link,
a.b88:visited,
a.b88:hover {
  color: #fff;
}

a.b88:hover {
  filter: brightness(1.1);
}

.b88:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .1));
}

.uc {
  margin: 10px 0;
  padding: 6px;
  background: rgba(255, 230, 246, .7);
  border: 2px dashed var(--rose);
  color: var(--night);
  font: bold 11px Tahoma, sans-serif;
  text-align: center;
}

img.ico {
  vertical-align: middle;
  margin-right: 4px;
}

.settings label {
  display: block;
  padding: 2px 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.3;
  cursor: pointer;
}

.settings input {
  margin-right: 5px;
  vertical-align: middle;
  accent-color: var(--dusk);
}


/* ========== 5. Page parts ========== */

/* home: bio */
.bio {
  margin: 8px 0 6px;
  padding: 10px 14px 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(236, 226, 255, .8));
  border: 1px solid var(--lilac);
  box-shadow: inset 0 0 0 1px #fff, 0 2px 8px rgba(61, 42, 130, .25);
  color: var(--ink);
  line-height: 1.65;
}

.bio p {
  margin-bottom: 8px;
}

.bio .biotag {
  color: var(--dusk);
  font: italic bold 13px Georgia, serif;
  text-align: center;
}

.biologo {
  margin: 0 0 6px;
  line-height: 0;
}

.biologo img {
  filter: drop-shadow(0 2px 3px rgba(61, 42, 130, .45));
}

.feature-title {
  font-size: 15px;
}

/* news: the most recent post */
.latest {
  position: relative;
  display: table;
  box-sizing: border-box;
  width: 100%;
  margin: 6px 0;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 236, 248, .85));
  border: 1px solid var(--rose);
  box-shadow: inset 0 0 0 1px #fff, 0 0 8px rgba(255, 138, 208, .5);
  color: var(--ink);
}

.latest .lc {
  display: table-cell;
  width: 70px;
  vertical-align: top;
}

.latest .lt {
  display: table-cell;
  vertical-align: top;
  line-height: 1.5;
}

.latest .newtag {
  position: absolute;
  right: 8px;
  top: 6px;
}

.latest-title {
  font-size: 14px;
}

/* small badges: LATEST, SOON */
.newtag,
.soon {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(122, 31, 90, .5);
  color: #fff;
  font: bold 9px/15px Tahoma, Verdana, sans-serif;
  letter-spacing: 1px;
}

.newtag {
  background: linear-gradient(180deg, #ff9ad8, #e0509f 50%, #c93e8a 51%, #ff7ec8);
  text-shadow: 0 1px 1px #7a1f5a;
}

.newtag.inline {
  position: static;
}

.soon {
  background: linear-gradient(180deg, #7fe8f5, #3fc2ee 50%, #1fa6e0 51%, #5fd8f4);
  text-shadow: 0 1px 1px #145a8a;
}

/* schedule: coming up */
.upc {
  margin: 6px 0 4px;
  padding: 7px 10px;
  background: rgba(230, 246, 255, .85);
  border: 1px dashed #3fc2ee;
  box-shadow: inset 0 0 0 1px #fff;
  color: var(--ink);
  line-height: 1.5;
}

.upc.empty {
  background: rgba(255, 255, 255, .65);
}

.upitem {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dotted #7fb8e0;
}

/* links between the news and schedule pages */
.nextup {
  margin: 4px 0 12px;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(228, 242, 255, .85));
  border: 1px solid #3fc2ee;
  box-shadow: inset 0 0 0 1px #fff;
  color: var(--ink);
  line-height: 1.7;
}

/* topic lists on the news and schedule pages */
table.forum {
  width: 100%;
  margin-bottom: 4px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--dusk);
}

table.forum th {
  padding: 4px 6px;
  background: linear-gradient(180deg, #8f6be8 0%, #6a3fd0 50%, #4a2aa8 51%, #6a49d8 100%);
  border: 1px solid #4a2aa8;
  color: #fff;
  font: bold 10px Tahoma, Verdana, sans-serif;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
  text-shadow: 0 1px 1px var(--night);
}

table.forum td {
  padding: 7px 8px;
  border: 1px solid #d3c3f4;
  color: var(--ink);
  vertical-align: middle;
}

table.forum td.ti,
table.forum th.ti {
  width: 34px;
  text-align: center;
}

table.forum tr.alt td {
  background: rgba(236, 226, 255, .6);
}

table.threads td.small {
  white-space: nowrap;
}

.icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: linear-gradient(180deg, #7fe8f5 0%, #3fc2ee 50%, #1fa6e0 51%, #5fd8f4 100%);
  border: 1px solid #1a7ab8;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(20, 90, 138, .5);
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  text-shadow: 0 1px 1px #145a8a;
}

.icon.sm {
  width: 20px;
  height: 20px;
  font-size: 11px;
  line-height: 18px;
}


/* ========== 6. Albums and gallery ========== */

img.cover {
  display: block;
  margin: 0 auto;
  border: 1px solid #fff;
  box-shadow: 0 2px 8px rgba(61, 42, 130, .5);
}

img.cover:hover {
  border-color: var(--rose);
}

/* an album cover with a cassette that slides out on hover */
a.sleeve,
a.sleeve:link,
a.sleeve:visited,
a.sleeve:hover {
  position: relative;
  display: inline-block;
  background: none;
  line-height: 0;
}

a.sleeve img.cover {
  position: relative;
  z-index: 2;
}

a.sleeve .tape {
  position: absolute;
  z-index: 1;
  top: 19%;
  left: 4%;
  width: 94%;
  height: 62%;
  border: 1px solid #0d0d10;
  border-radius: 4% / 6%;
  background:
    radial-gradient(circle at 5% 9%, #bdb7a6 0 3.2%, #6a6558 3.6% 4.6%, transparent 5%),
    radial-gradient(circle at 95% 9%, #bdb7a6 0 3.2%, #6a6558 3.6% 4.6%, transparent 5%),
    radial-gradient(circle at 5% 91%, #bdb7a6 0 3.2%, #6a6558 3.6% 4.6%, transparent 5%),
    radial-gradient(circle at 95% 91%, #bdb7a6 0 3.2%, #6a6558 3.6% 4.6%, transparent 5%),
    linear-gradient(180deg, transparent 0 78%, #4a4a50 78% 100%),
    linear-gradient(180deg, #3a3a40 0%, #26262b 100%);
  box-shadow: 2px 3px 5px rgba(20, 12, 50, .5), inset 0 1px 0 #6b6b73;
  transition: transform .45s cubic-bezier(.2, .8, .3, 1);
}

a.sleeve.big .tape {
  left: 5%;
}

/* paper label with a red stripe and ruled lines */
a.sleeve .tape:before {
  content: "A";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 8%;
  height: 40%;
  padding: 2px 3px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #c4372f 0 14%, transparent 14%),
    repeating-linear-gradient(180deg, transparent 0 22%, rgba(70, 110, 190, .75) 22% 28%),
    #efe6cc;
  border: 1px solid #5a5240;
  border-radius: 1px;
  color: #c4372f;
  font: bold 9px/1.1 Georgia, serif;
  text-align: left;
}

/* the window onto the tape */
a.sleeve .tape:after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 54%;
  height: 25%;
  border-radius: 3px;
  background: linear-gradient(180deg, #1a1410, #3a2618 55%, #1a1410);
  box-shadow: inset 0 0 0 1px #8a8372;
}

a.sleeve .tape i {
  position: absolute;
  z-index: 2;
  top: 53%;
  width: 18%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #1a1410 0 9%, transparent 10% 40%, #4b2f1c 41% 100%),
    repeating-conic-gradient(#f4f1e8 0 18deg, #a89f8a 18deg 36deg);
  box-shadow: 0 0 0 1px #0d0d10;
}

a.sleeve .tape i.rl { left: 18%; }
a.sleeve .tape i.rr { right: 18%; }

a.sleeve:hover .tape,
a.sleeve:focus .tape {
  transform: translateX(44%);
}

a.sleeve:hover .tape i {
  animation: spin 2.2s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.gallery {
  column-count: 3;
  column-gap: 16px;
  margin-top: 10px;
}

.gfig {
  position: relative;
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 6px 6px 8px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid #fff;
  box-shadow: 0 3px 10px rgba(42, 26, 102, .35), inset 0 0 0 1px rgba(180, 140, 240, .35);
}

.gfig:nth-child(odd) { transform: rotate(-.6deg); }
.gfig:nth-child(even) { transform: rotate(.6deg); }

.gfig:hover {
  z-index: 2;
  transform: rotate(0) translateY(-3px);
}

.gfig a.gl {
  position: relative;
  display: block;
  overflow: hidden;
  background: none;
  line-height: 0;
  cursor: zoom-in;
}

.gfig a.gl img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1), filter .4s;
}

.gfig a.gl:hover img {
  transform: scale(1.06);
  filter: saturate(1.15) brightness(1.04);
}

.gfig a.gl:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.gfig a.gl:before {
  content: "view";
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 1px 8px;
  background: linear-gradient(180deg, #8f6be8, #4a2aa8);
  border: 1px solid #fff;
  border-radius: 10px;
  color: #fff;
  font: bold 10px/1.6 Tahoma, Verdana, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 1px var(--night);
  opacity: 0;
  transition: opacity .25s;
}

.gfig a.gl:hover:before {
  opacity: 1;
}

.gfig figcaption {
  padding: 6px 2px 0;
  color: var(--ink);
  line-height: 1.35;
}

.gfig figcaption b {
  color: var(--deep);
  font-size: 12px;
}

.credits {
  clear: both;
  margin: 6px 0 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid #fff;
  box-shadow: inset 0 0 0 1px rgba(180, 140, 240, .4);
  color: var(--ink);
  line-height: 1.7;
  text-align: center;
}

.credits b {
  color: var(--link);
}

/* full-size viewer (js/main.js) */
#lb {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: none;
  text-align: center;
  background: rgba(24, 12, 70, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#lb.on {
  display: block;
  animation: viewer-in .25s ease-out;
}

@keyframes viewer-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

#lb .frame {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 92vw;
  padding: 8px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #fff;
  box-shadow: 0 12px 50px rgba(0, 0, 0, .55);
  transform: translate(-50%, -52%);
}

#lb img {
  display: block;
  max-width: 86vw;
  max-height: 72vh;
  margin: 0 auto;
}

#lb .cap {
  padding: 8px 4px 2px;
  color: var(--ink);
  font: 12px/1.4 Verdana, Tahoma, sans-serif;
}

#lb .cap b {
  color: var(--deep);
  font-size: 14px;
}

#lb .count {
  color: var(--dusk);
  font: bold 10px Tahoma, Verdana, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#lb button {
  position: absolute;
  z-index: 2;
  width: 38px;
  height: 32px;
  background: linear-gradient(180deg, #7fe8f5 0%, #3fc2ee 50%, #1fa6e0 51%, #5fd8f4 100%);
  border: 1px solid #1a7ab8;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  color: #fff;
  font: bold 14px Tahoma, Verdana, sans-serif;
  text-shadow: 0 1px 1px #145a8a;
  cursor: pointer;
}

#lb button:hover {
  background: linear-gradient(180deg, #ffb0e4, #ff8ad0 50%, #d8509f 51%, #ff8ad0);
}

#lb .prev { left: 18px; top: 50%; margin-top: -16px; }
#lb .next { right: 18px; top: 50%; margin-top: -16px; }
#lb .close { right: 18px; top: 16px; }

@media (max-width: 760px) {
  .gallery {
    column-count: 2;
  }
}


/* ========== 7. Stamps and gifs ========== */

.stp {
  vertical-align: middle;
  border: 0;
  image-rendering: pixelated;
}

.stp:hover {
  animation: wobble .5s ease-in-out;
}

@keyframes wobble {
  25% { transform: rotate(-4deg) scale(1.06); }
  75% { transform: rotate(4deg) scale(1.06); }
}

/* stamps stuck on the banner corners */
#banner .bst {
  position: absolute;
  bottom: 8px;
  z-index: 3;
  line-height: 0;
  filter: drop-shadow(1px 2px 2px rgba(42, 26, 102, .55));
}

#banner .bst.l { left: 14px; transform: rotate(-7deg); }
#banner .bst.r { right: 14px; transform: rotate(6deg); }

/* a stamp beside the page title */
.h2st {
  float: right;
  margin: -6px 0 6px 10px;
  line-height: 0;
  transform: rotate(4deg);
  filter: drop-shadow(1px 2px 2px rgba(42, 26, 102, .45));
}

.h2st.l {
  float: left;
  margin: -6px 12px 6px 0;
  transform: rotate(-4deg);
}

/* a row of stamps between sections */
.stamprow {
  clear: both;
  margin: 14px 0 6px;
  font-size: 0;
  text-align: center;
}

.stamprow .stp {
  margin: 0 6px;
  filter: drop-shadow(1px 2px 2px rgba(42, 26, 102, .4));
}

.stamprow .r0 { transform: rotate(-4deg); }
.stamprow .r1 { transform: rotate(3deg); }
.stamprow .r2 { transform: rotate(-2deg); }
.stamprow .r3 { transform: rotate(5deg); }

/* home page: stamps in the left column, a grid in the right column, a wall in the footer */
.stampbox {
  margin: 8px;
  line-height: 0;
  text-align: center;
}

.stampbox .stp {
  margin: 2px 0 6px;
  filter: drop-shadow(1px 2px 2px rgba(42, 26, 102, .4));
}

.stampbox .t0 { transform: rotate(-3deg); }
.stampbox .t1 { transform: rotate(3deg); }

.box .in.stamps {
  padding: 4px 2px;
  font-size: 0;
}

.stamps a {
  display: inline-block;
  margin: 2px 1px;
  line-height: 0;
}

.stamps a:hover {
  background: none;
}

.stamps a:hover img {
  filter: brightness(1.12) saturate(1.2);
}

.footstamps {
  margin-bottom: 6px;
  font-size: 0;
}

.footstamps .stp {
  margin: 2px 3px;
}

.footone {
  margin-bottom: 6px;
  font-size: 0;
}

.footone .stp {
  margin: 2px 6px;
  transform: rotate(-2deg);
}

/* animated gifs */
.gifimg {
  vertical-align: middle;
}

.gfl {
  float: right;
  margin: 0 0 6px 12px;
  line-height: 0;
  transform: rotate(3deg);
}

.gifbox {
  margin: 8px;
  line-height: 0;
  text-align: center;
}

.gifbox .gifimg {
  filter: drop-shadow(1px 2px 2px rgba(42, 26, 102, .35));
}

.gifdiv {
  padding: 6px 0;
  background: rgba(255, 255, 255, .55);
  border-top: 1px solid rgba(255, 255, 255, .9);
  line-height: 0;
  text-align: center;
}


/* ========== 8. Winter settings and Christmas ========== */

#snow {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 98;
  display: none;
  pointer-events: none;
  image-rendering: pixelated;
}

#snow.on {
  display: block;
}

/* string of lights along the top edge (js/main.js) */
#xlights {
  position: absolute;
  left: 0;
  right: 0;
  top: -9px;
  height: 18px;
  z-index: 5;
  overflow: hidden;
  font-size: 0;
  white-space: nowrap;
  pointer-events: none;
}

#xlights:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 2px;
  background: var(--night);
  opacity: .7;
}

#xlights i {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 11px;
  margin: 4px 9px 0;
  border-radius: 50% 50% 55% 55%;
  box-shadow: 0 0 8px currentColor;
  animation: bulb 2s ease-in-out infinite;
}

#xlights i.b0 { background: #ff5a6e; color: #ff5a6e; }
#xlights i.b1 { background: #ffd65c; color: #ffd65c; }
#xlights i.b2 { background: #5ee0f0; color: #5ee0f0; }
#xlights i.b3 { background: #7be08a; color: #7be08a; }
#xlights i.b4 { background: #ff8ad0; color: #ff8ad0; }

@keyframes bulb {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* Christmas week: candy-cane frame, santa hat, red and green headings */
html[data-xmas="on"] #wrap {
  border: 4px solid transparent;
  border-image: repeating-linear-gradient(45deg, #e0334a 0 7px, #ffffff 7px 14px) 4;
  outline: 1px solid rgba(42, 26, 102, .5);
}

html[data-xmas="on"] #ticker {
  background: linear-gradient(180deg, #8a1c34, #4a0f26 55%, #7a1830);
  color: #ffe9a8;
}

html[data-xmas="on"] #footer {
  background: linear-gradient(180deg, #1f6a4a, #0f3a2a);
  color: #d8ffe8;
}

html[data-xmas="on"] #footer a {
  color: #ffe9a8;
}

html[data-xmas="on"] .box h3 {
  background: linear-gradient(180deg, #e8556a 0%, #c42a45 50%, #a21f3a 51%, #d64a60 100%);
  border-bottom-color: #7a1830;
}

html[data-xmas="on"] h4 {
  background: linear-gradient(180deg, #3fa072 0%, #1f7a52 50%, #176544 51%, #2f8f62 100%);
  border-color: #0f4a32;
}

html[data-xmas="on"] ::selection {
  background: #e0334a;
  color: #fff;
}

#banner h1 .hat {
  display: none;
}

html[data-xmas="on"] #banner h1 .hat {
  position: absolute;
  left: -8px;
  top: -26px;
  display: block;
  width: 56px;
  height: 46px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='46' viewBox='0 0 28 23' shape-rendering='crispEdges'><path d='M6 17 L10 6 L18 2 L22 4 L24 17 Z' fill='%23e0334a'/><path d='M10 6 L18 2 L18 4 L11 8 Z' fill='%23ff6a7e'/><rect x='3' y='16' width='23' height='5' fill='%23ffffff'/><rect x='3' y='19' width='23' height='2' fill='%23d8e4ff'/><circle cx='23' cy='4' r='3.2' fill='%23ffffff'/></svg>") no-repeat center / contain;
  image-rendering: pixelated;
  filter: drop-shadow(1px 2px 1px rgba(42, 26, 102, .5));
  transform: rotate(-16deg);
}


/* ========== 9. Mouse cursors (Windows 95 style) ========== */

html,
body,
#lb {
  cursor: url("../img/cursors/arrow.png") 0 0, default;
}

a,
a *,
button,
label,
select,
input[type="checkbox"],
.btn,
.gl,
.gl *,
a.sleeve,
a.sleeve *,
#lb button,
#titlebar .btns span {
  cursor: url("../img/cursors/hand.png") 10 0, pointer;
}

/* hourglass until the page has loaded */
html.loading,
html.loading * {
  cursor: url("../img/cursors/wait.png") 13 14, wait !important;
}
