/* Eric Meyer's CSS reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
        margin: 0;
        padding: 0;
        border: 0;
        outline: 0;
        font-size: 100%;
        vertical-align: baseline;
        background: transparent;
}
body {
        line-height: 1;
}
ol, ul {
        list-style: none;
}
blockquote, q {
        quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
        content: '';
        content: none;
}

/* remember to define focus styles! */
:focus {
        outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
        text-decoration: none;
}
del {
        text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
        border-collapse: collapse;
        border-spacing: 0;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
        display: block;
}

/* Typography*/         

    @font-face {
        font-family: 'GraphicPixel';
        src: url('../fonts/graphicpixel-webfont.eot');
        src: url('../fonts/graphicpixel-webfont.eot?#iefix') format('embedded-opentype'),
             url('../fonts/graphicpixel-webfont.woff') format('woff'),
             url('../fonts/graphicpixel-webfont.ttf') format('truetype'),
             url('../fonts/graphicpixel-webfont.svg#GraphicPixelRegular') format('svg');
        font-weight: normal;
        font-style: normal;

    }

    @font-face {
        font-family: 'AdvoCut';
        src: url('../fonts/advocut-webfont.eot');
        src: url('../fonts/advocut-webfont.eot?#iefix') format('embedded-opentype'),
             url('../fonts/advocut-webfont.woff') format('woff'),
             url('../fonts/advocut-webfont.ttf') format('truetype'),
             url('../fonts/advocut-webfont.svg#AndinaRegular') format('svg');
        font-weight: normal;
        font-style: normal;

    }

        .gp {font-family: 'GraphicPixel', sans-serif;}

/* General Layout */    


    html {-webkit-text-size-adjust: 100%}
        html, body {height:100%;width:100%;}

        body {padding:0;margin:0;background:#111;overflow:hidden;image-rendering:-moz-crisp-edges; image-rendering:-webkit-optimize-contrast;border-top:2px solid #707070;}

        canvas { position:absolute;image-rendering:optimizeSpeed;}
        #background { background:url('../img/common/loading.png') no-repeat center center, #000;}
        .error #background { background:url('../img/common/loading-error.png') no-repeat center center, #000;}

        #background, #foreground { margin:0; padding:0;}

    #achievements nav::selection {background:transparent;text-decoration:none;color:transparent;}
    #canvas, #bar-container, #bubbles, #chatbox, #canvasborder, #foreground, #background, footer, #container, #achievement-notification {-moz-user-select:none;-webkit-user-select:none;-o-user-select:none;-ms-user-select:none;}

    .started #canvas {cursor:none;}

    #foreground { 
       -webkit-tap-highlight-color:rgba(0,0,0,0);
    }


        @media screen and (max-width: 600px) {

                #entities {
                        cursor: default;
                }
        }

    h1 {font-weight:normal;}

    .preload {display:none;}

/* Common rules */

    body.upscaled.game {background:url('../img/1/wood.png') repeat, #000; background-size:128px;}
    body.upscaled.game {background:url('../img/1/wood.png') repeat, #000; background-size:128px;}
    body.game {background:url('../img/1/wood.png') repeat, #000; background-size:128px;}
    body.game {background:url('../img/1/wood.png') repeat, #000; background-size:128px;}

    /* ── Hide black transition mask ── */
    #mask { display: none !important; }

    /* ── Logo in game mode: fixed, small, centered at top ── */
    .game #logo {
        position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 9999 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: auto !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none !important;
        animation: none !important;
        pointer-events: none;
    }
    .game #logo img {
        max-width: 250px !important;
        height: auto !important;
        display: block !important;
    }
    /* Responsive sizes */
    @media screen and (min-width: 1501px) {
        .game #logo img { max-width: 160px !important; }
    }
    @media screen and (max-width: 1000px) {
        .game #logo img { max-width: 110px !important; }
    }
    @media screen and (max-width: 800px) {
        .game #logo { display: none !important; }
    }

    /* ── Logo on intro page ── */
    .intro #logo {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto 10px auto !important;
        transition: none !important;
    }
    .intro #logo img { max-width: 340px !important; height: auto !important; }


    footer {position:fixed; bottom:0; left:0; right:0; z-index:100; padding:5px 0; text-align:center; font-size:12px;}

    #logosparks, .left-ornament, .right-ornament, #character, #character div, .button, .button div, #respawn, #scroll, #instructions, .icon, #tilt, .parchment-left, .parchment-middle, .parchment-right, .avatar, .facebook, .twitter, .close, #note, .ribbon .top, .ribbon .bottom, #about .img, .ext-link {background:url('../img/1/spritesheet.png');image-rendering:-moz-crisp-edges; image-rendering:-webkit-optimize-contrast;}

    #logo {background:none !important; width: auto; height: auto; pointer-events: none;}

    #moztab {height:49px;width:118px;position:fixed;top:0;right:15%;background:url('../img/1/spritesheet.png') no-repeat -229px -204px;display:none;}

    #vignetting {height:100%;width:100%;position:absolute;top:0;left:0;pointer-events:none;}
    #logosparks {display:block;position:absolute;top:0;left:0;}
    #parchment, #parchment input {font-family:'GraphicPixel';}
    #parchment input {width:50%;background:rgba(0,0,0,0.05);text-align:center;-moz-animation:glow 0.5s linear infinite alternate;-webkit-animation:glow 0.5s linear infinite alternate;-o-animation:glow 0.5s linear infinite alternate;-ms-animation:glow 0.5s linear infinite alternate;color:#fff;text-shadow:0 0 3px rgba(0,0,0,0.8);}
    #parchment input:focus {-moz-animation:none;-webkit-animation:none;-o-animation:none;-ms-animation:none;animation:none;color:#fff;background:rgba(0,0,0,0.1);border-color:rgba(0,0,0,0.3);}

    #nicknameinput {display:none;margin:10px auto 0 auto;}
    #createcharacter.wallet-ready #nicknameinput {display:block;}
    #createcharacter.wallet-ready #character {margin-top:10px;}
    #createcharacter.wallet-ready .play {margin-top:8px;}
    #createcharacter.wallet-ready #connect-wallet {display:none;}
    #connect-wallet {display:flex;align-items:center;justify-content:center;gap:8px;margin:14px auto 0 auto;cursor:pointer;background:linear-gradient(180deg,#d63c2a 0%,#a01e10 50%,#7a1208 100%);border:3px solid #e2b96a;border-radius:6px;padding:10px 28px;font-family:'GraphicPixel',sans-serif;font-size:14px;color:#fce045;letter-spacing:2px;text-shadow:1px 1px 2px rgba(0,0,0,0.8);box-shadow:0 4px 0 #5a0a04,0 6px 15px rgba(0,0,0,0.5),inset 0 1px 0 rgba(255,200,100,0.3);-webkit-transition:all 0.1s ease;transition:all 0.1s ease;max-width:240px;text-align:center;}
    #connect-wallet:hover {background:linear-gradient(180deg,#e84a36 0%,#b52518 50%,#8a1a0a 100%);box-shadow:0 4px 0 #5a0a04,0 6px 20px rgba(214,60,42,0.4),inset 0 1px 0 rgba(255,220,120,0.4);}
    #connect-wallet:active {transform:translateY(3px);box-shadow:0 1px 0 #5a0a04,0 3px 8px rgba(0,0,0,0.4),inset 0 1px 0 rgba(255,200,100,0.2);}
    .connect-wallet-icon {font-size:18px;line-height:1;}
    .connect-wallet-text {font-size:14px;white-space:nowrap;}
    .connect-wallet-spinner {display:none;width:16px;height:16px;}
    #connect-wallet.loading .connect-wallet-spinner {display:inline-block;}
    #connect-wallet.loading .connect-wallet-text {opacity:0.7;}

    #wallet-picker {display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;background:rgba(20,10,0,0.82);justify-content:center;align-items:center;backdrop-filter:blur(2px);}
    #wallet-picker.visible {display:flex;}
    .wallet-picker-box {background:linear-gradient(180deg,#2a1a00 0%,#160e00 100%);border:3px solid #c8900a;border-radius:8px;padding:26px 36px 18px 36px;text-align:center;font-family:'GraphicPixel',sans-serif;min-width:260px;box-shadow:0 0 0 1px #7a5000,0 8px 40px rgba(0,0,0,0.9),inset 0 1px 0 rgba(255,200,50,0.12);}
    .wallet-picker-header {display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:4px;}
    .wallet-picker-deco {font-size:14px;opacity:0.7;}
    .wallet-picker-title {color:#fce045;font-size:14px;margin:0;letter-spacing:2px;text-shadow:0 1px 4px rgba(0,0,0,0.8);}
    .wallet-picker-divider {height:2px;background:linear-gradient(90deg,transparent,#c8900a 30%,#fce045 50%,#c8900a 70%,transparent);margin:14px 0 16px 0;border-radius:1px;}
    .wallet-option {cursor:pointer;display:flex;align-items:center;gap:14px;background:linear-gradient(180deg,#3d2500 0%,#281600 100%);border:2px solid #7a5010;border-radius:6px;padding:12px 18px;margin:8px 0;font-size:13px;color:#e8c860;letter-spacing:1px;-webkit-transition:all 0.15s;transition:all 0.15s;box-shadow:0 3px 0 #1a0e00,inset 0 1px 0 rgba(255,200,50,0.08);}
    .wallet-option:hover {background:linear-gradient(180deg,#503000 0%,#341e00 100%);border-color:#c8900a;color:#fce045;box-shadow:0 3px 0 #1a0e00,0 0 14px rgba(200,144,10,0.25),inset 0 1px 0 rgba(255,200,50,0.15);}
    .wallet-option:active {transform:translateY(2px);box-shadow:0 1px 0 #1a0e00;}
    .wallet-logo {display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;border-radius:7px;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,0.5);}
    .wallet-name {font-size:13px;letter-spacing:2px;flex:1;text-align:left;}
    .wallet-cancel {cursor:pointer;margin-top:16px;font-size:11px;color:#5a3a18;letter-spacing:2px;-webkit-transition:color 0.15s;transition:color 0.15s;padding:4px 8px;}
    .wallet-cancel:hover {color:#c8900a;}

    #character div {-moz-transition:0.4s opacity linear;-webkit-transition:0.4s opacity linear;-o-transition:0.4s opacity linear;-ms-transition:0.4s opacity linear;transition:0.4s opacity linear;}

    .play div {position:absolute;top:0;left:0;opacity:1;-moz-transition:0.4s linear opacity, 0.2s ease transform;-webkit-transition:0.4s linear opacity, 0.2s ease transform;-o-transition:0.4s linear opacity, 0.2s ease transform;-ms-transition:0.4s linear opacity, 0.2s ease transform;transition:0.4s linear opacity, 0.2s ease transform}
    .play div:hover {transform:scale(1.1);}
    .play.disabled div {opacity:0.35;pointer-events:none;cursor:default;filter:grayscale(60%);}
    .play.disabled {cursor:not-allowed;}
    .play img {display:none;}

    .play .play-label {position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);z-index:2;color:#fce045;letter-spacing:1px;pointer-events:none;white-space:nowrap;font-size:22px;}
    .play.loading .play-label {opacity:0.65;}
    .play.loading img {display:block;position:absolute;top:54%;left:50%;}
    #bar-container {background:url('../img/1/barsheet.png');image-rendering:-moz-crisp-edges;position:relative;width:100%;z-index:10;background-repeat:no-repeat;overflow:hidden;}
    #healthbar {background:url('../img/1/barsheet.png');image-rendering:-moz-crisp-edges;position:absolute;overflow:hidden;}
        #hitpoints {background:#d83939;-moz-transition:.5s width ease;-webkit-transition:.5s width ease;-o-transition:.5s width ease;-ms-transition:.5s width ease;transition:.5s width ease;}
    #hitpoints.white {-moz-animation:flash 0.5s linear 1;-webkit-animation:flash 0.5s linear 1;-o-animation:flash 0.5s linear 1;-ms-animation:flash 0.5s linear 1;animation:flash 0.5s linear 1;}
        #hitpoints.invincible {-moz-animation:invincible 0.3s steps(3, end) alternate infinite;-webkit-animation:invincible 0.3s steps(3, end) alternate infinite;-o-animation:invincible 0.3s steps(3, end) alternate infinite;-ms-animation:invincible 0.3s steps(3, end) alternate infinite;}

    #notifications {position:absolute;left:50%;text-align:center;font-family:'GraphicPixel';overflow:hidden;}
    #notifications div {position:absolute;-moz-transition:none;-webkit-transition:none;top:0;width:100%;}
    #notifications div.top {-moz-transition:0.5s top ease;-webkit-transition:0.5s top ease;-o-transition:0.5s top ease;-ms-transition:0.5s top ease;transition:0.5s top ease;}
    #notifications div.top #message1 {opacity:0;-moz-transition:0.2s opacity linear;-webkit-transition:0.2s opacity linear;-o-transition:0.2s opacity linear;-ms-transition:0.2s opacity linear;transition:0.2s opacity linear;}
    #notifications span {display:block;text-align:center;width:100%;opacity:1;-moz-user-select:none;-webkit-user-select:none;}

    #playercount {font-family:'GraphicPixel';color:#e3e3e3;position:absolute;}
    #playercount:hover {cursor:pointer;color:#FCE045;}
    #population {background:url('../img/1/barsheet.png');image-rendering:-moz-crisp-edges;position:absolute;font-family:'GraphicPixel';color:#fff;text-align:center;opacity:0;pointer-events:none;-moz-transition:0.2s opacity linear, 0.2s height ease;-webkit-transition:0.2s opacity linear, 0.2s height ease;-o-transition:0.2s opacity linear, 0.2s height ease;-ms-transition:0.2s opacity linear, 0.2s height ease;transition:0.2s opacity linear, 0.2s height ease;height:0;overflow:hidden;}
    #population span:nth-child(1) {color:#FCE045;}
    #population.visible {opacity:1;pointer-events:auto;}

    .barbutton {background:url('../img/1/barsheet.png');image-rendering:-moz-crispt-edges;position:absolute;}

    #chatbox {background:url('../img/1/barsheet.png');image-rendering:-moz-crisp-edges;position:absolute;left:50%;z-index:5;-moz-transition:0.2s bottom ease;-webkit-transition:0.2s bottom ease;-o-transition:0.2s bottom ease;-ms-transition:0.2s bottom ease;transition:0.2s bottom ease;}
    .bubble p {-moz-user-select:none;-webkit-user-select:none;}

    #instructions {position:absolute;top:50%;left:50%;z-index:1000;font-family:'GraphicPixel';pointer-events:none;opacity:0;-moz-transition:0.25s opacity linear;-webkit-transition:0.4s top ease, 0.4s opacity linear;-o-transition:0.4s top ease, 0.4s opacity linear;-ms-transition:0.4s top ease, 0.4s opacity linear;transition:0.4s top ease, 0.4s opacity linear;}
    #instructions.active, #achievements.active {opacity:1;pointer-events:auto;}

    #weapon, #armor {image-rendering:-moz-crisp-edges;}

    #achievements, #achievements li, .coin, #achievement-notification, #coinsparks, .achievement-sharing a, #previous, #next {background:url('../img/1/achievements.png');image-rendering:-moz-crisp-edges;}
    #achievements {font-family:'GraphicPixel'; position:absolute;top:50%;left:50%;z-index:1000;opacity:0;pointer-events:none;-moz-transition:0.25s opacity linear;-webkit-transition:0.4s top ease, 0.4s opacity linear;-o-transition:0.4s top ease, 0.4s opacity linear;-ms-transition:0.4s top ease, 0.4s opacity linear;transition:0.4s top ease, 0.4s opacity linear;}
    #achievements li {clear:both;position:relative;}
    #achievements li .coin, #achievements li .achievement-name {float:left;}
    #achievements li .coin {opacity:0;}
    #achievements li.unlocked .achievement-name {color:#fce045;}
    #achievements li.unlocked .coin {opacity:1;}
    #achievements .achievement-name {color:#fff;}
    #achievements .achievement-description {float:right;width:65%;}
    #achievement-notification {position:absolute;z-index:8;bottom:0;left:50%;text-align:center;font-family:'GraphicPixel';pointer-events:none;-moz-transition:0.3s height ease;-webkit-transition:0.3s height ease;-o-transition:0.3s height ease;-ms-transition:0.3s height ease;}
    #achievement-notification .name, #achievement-notification .title {opacity:0;-moz-transition:0.3s opacity linear;-webkit-transition:0.3s opacity linear;-o-transition:0.3s opacity linear;-ms-transition:0.3s opacity linear;transition:0.3s opacity linear;}
    #achievement-notification.active .name, #achievement-notification.active .title {opacity:1;}
    #achievement-info {overflow:hidden;height:100%;}
    .achievement-sharing {position:absolute;display:none;}
    #achievements li.unlocked:hover .achievement-sharing {display:block;}
    .achievement-sharing a {display:block;float:left;}

        #bubbles a {pointer-events:auto;text-decoration:none;color:#fcda5c;}

    #create-new span:hover, #cancel span:hover {cursor:pointer;color:#d83939;}
    #create-new span span {color:#b2af9b;}
    #create-new span span:hover {color:#b2af9b;}
    #playername {color:#fff;}

    #credits, #loadcharacter, #confirmation, #death, #error, #about {position:absolute;left:50%;text-align:center;font-family:'GraphicPixel', sans-serif;z-index:1000;}

    #playerimage {image-rendering: -moz-crisp-edges; image-rendering: -webkit-optimize-contrast;}

    #parchment p {font-family:'GraphicPixel';}

    #credits, #death, #about {top:50%;}
    .intro #credits, .intro #about {top:55%;}
    #credits h1 a {color:#fcda5c;text-decoration:none;}
    #authors div a {display:block;color:#fff;text-decoration:none;}
    #authors div a:hover, #credits h1 a:hover {color:#93C1FF;}
    #seb {clear:both;}

    #portrait {display:none;}

    #about .link a:hover {color:#d83939;}

    footer {font-family:'GraphicPixel';position:absolute;bottom:5%;left:0;text-align:center;width:100%;color:#ffffff;-moz-transition:0.2s opacity linear;-webkit-transition:0.2s opacity linear;-o-transition:0.2s opacity linear;-ms-transition:0.2s opacity linear;transition:0.2s opacity linear;}
    .upscaled.game footer {color:#ffffff; position:fixed; bottom:15px; left:0; right:0; z-index:100; padding:15px 0; text-align:center; font-size:12px;}
    .game footer {color:#ffffff; position:fixed; bottom:20px; left:0; right:0; z-index:100; padding:15px 0; font-size:16px; text-align:center;}

    .intro footer {opacity:1;}
    .intro #footer-left { display: none !important; }
    footer:hover {opacity:1;}
    footer div  {display:inline-block; margin:0 15px;}
    footer #footer-wrapper {display: flex !important; justify-content: center; align-items: center; flex-wrap: wrap; gap: 50px; margin-bottom: 12px;}
    footer #footer-wrapper > div {display: inline-block !important; margin: 0 !important;}
    .game footer div {display:inline-block; margin:0 20px;}
    .game #contract-footer {color:#ffffff; font-weight:bold; font-size:12px; letter-spacing:1px;}
    .game #footer-left {display:inline-block; margin-right:40px; font-size:16px;}
    .game #footer-left a {margin:0 8px; text-decoration:none; color:#ffffff; font-size:18px;}
    .game #footer-center {display:inline-block; text-align:center; font-size:14px;}
    .game #footer-center span {font-size:16px; margin:0 8px;}
    .game #footer-right {display:inline-block; font-size:16px;}
    .game #project-social-footer {display:inline-block; margin-right:20px;}
    .game #project-social-footer a {font-size:20px; margin:0 6px;}
    .game #credits-link {display:inline-block;}
    .game #credits-link span {font-size:16px;}
    #sharing a {display:inline-block;float:right;background-size:844px;position:relative;top:-2px;text-decoration:none;width:32px;height:22px;margin:0 8px 0 8px;transition:transform 0.2s;text-align:center;line-height:22px;font-size:16px;font-weight:bold;color:#fff;}
    #sharing #xshare {background:none !important;border-radius:4px;padding:0 8px;font-size:18px;}
    #sharing #xshare:hover {transform:scale(1.15);}
    #sharing .facebook {display:none;}
    #sharing .twitter {display:none;}
    #sharing .gplus {height:22px;width:22px;background:url('../img/common/gplus.png');margin:0 12px 0 0px;}
    #credits-link span {display:inline-block;margin-left:12px;}
    #credits-link span:hover {color:#fcda5c;cursor:pointer;}

    #sharing a:hover {-moz-transform:scale(1.2);-webkit-transform:scale(1.2);-o-transform:scale(1.2);transform:scale(1.2);}
    #sharing a:active {-moz-transform:scale(1);-webkit-transform:scale(1);-o-transform:scale(1);transform:scale(1);}

    .close {position:absolute;z-index:20000;}
    .close:hover {cursor:pointer;}

    .ribbon {position:absolute; cursor:pointer; z-index: 999;}
    .ribbon:hover {cursor:pointer;}
    .ribbon .top {-moz-transition:0.25s height ease;-webkit-transition:0.25s height ease;-o-transition:0.25s height ease;-ms-transition:0.25s height ease;transition:0.25s height ease;}

        .bubble {background:rgba(45,45,45,0.8);padding:0px 12px 0px 12px;border-radius:8px;color:rgba(255,255,255,0.8);display:inline-block;text-align:center;position:absolute;}
        .thingy {height:10px;width:11px;background:url('../img/common/thingy.png');margin:0 auto;margin-top:-10px;top:10px;position:relative;}

    .alert {height:50px;background:#d83939;width:100%;color:#eee;font-size:20px;font-family:'GraphicPixel', arial, sans-serif;text-align:center;line-height:50px;border-bottom:1px solid #000;}

    #instructions, #achievements, #lists, #about, #credits, .ribbon, .play, .play div, .barbutton {-webkit-tap-highlight-color:transparent;}
    #nicknameinput::-webkit-input-placeholder  {color:#fff;}

    #resize-check {position:absolute;height:0;top:0;left:0;-moz-transition:0.001s height ease;-webkit-transition:0.001s height ease;-o-transition:0.001s height ease;-ms-transition:0.001s height ease;transition:0.001s height ease;}

    #death p em {display:block;font-style:normal;}

/* Magic Parchment */

    .parchment-left {position:absolute;top:0;left:0%;}
    .parchment-right {position:absolute;top:0;right:0%;}
    .parchment-middle {position:absolute;left:50%;top:0;}
    .animate .parchment-left {-moz-animation:parchleft 1s ease 1;-webkit-animation:parchleft 1s ease 1;-o-animation:parchleft 1s ease 1;-ms-animation:parchleft 1s ease 1;animation:parchleft 1s ease 1;}
    .animate .parchment-right {-moz-animation:parchright 1s ease 1;-webkit-animation:parchright 1s ease 1;-o-animation:parchright 1s ease 1;-ms-animation:parchright 1s ease 1;animation:parchright 1s ease 1;}

    #credits, #createcharacter, #loadcharacter, #confirmation, #death, #error, #about {opacity:0;pointer-events:none;-moz-transition:none;-webkit-transition:none;-o-transition:none;-ms-transition:none;transition:none;}
    .credits #credits, .createcharacter #createcharacter, .loadcharacter #loadcharacter, .confirmation #confirmation, .death #death, .error #error, .about #about {opacity:1;pointer-events:auto !important;-moz-transition:0.5s opacity linear;-webkit-transition:0.5s opacity linear;-o-transition:0.5s opacity linear;-ms-transition:0.5s opacity linear;transition:0.5s opacity linear;}

/* States & Transitions */

    #intro {-moz-transition:0.4s opacity linear;-webkit-transition:0.4s opacity linear;-o-transition:0.4s opacity linear;-ms-transition:0.4s opacity linear;transition:0.4s opacity linear;}
    #mask, #logo, #parchment {opacity:0;}
    .intro #parchment {opacity:1;}
    /* .intro #logo opacity handled above */
    .game #confirmation, .game #loadcharacter, .game #createcharacter, .game #error {display:none;}

    .game #parchment {z-index:0;-moz-transition:0.5s opacity linear 0.5s, 0s z-index linear 1s;-webkit-transition:0.5s opacity linear 0.5s, 0s z-index linear 1s;-o-transition:0.5s opacity linear 0.5s, 0s z-index linear 1s;-ms-transition:0.5s opacity linear 0.5s, 0s z-index linear 1s;transition:0.5s opacity linear 0.5s, 0s z-index linear 1s;top:50%;}
    .game #credits, .game #death, .game #about, .game #leaderboard {opacity:0;-moz-transition:0s opacity linear 0s;-webkit-transition:0s opacity linear 0s;-o-transition:0s opacity linear 0s;-ms-transition:0s opacity linear 0s;transition:0s opacity linear 0s; pointer-events:none;}
    .game.credits #credits, .game.death #death, .game.about #about {opacity:1;-moz-transition:0.5s opacity linear 0.5s;-webkit-transition:0.5s opacity linear 0.5s;-o-transition:0.5s opacity linear 0.5s;-ms-transition:0.5s opacity linear 0.5s;transition:0.5s opacity linear 0.5s;}
    .game #leaderboard { display:block; position:absolute; top:50%; left:50%; margin-left:-300px; margin-top:-200px; z-index:1001; }
    .game #leaderboard.active { opacity:1; pointer-events:auto; z-index:1001; }
    .game.credits #parchment, .game.death #parchment, .game.about #parchment {opacity:1;-moz-transition:0.5s opacity linear 0s, 0s z-index linear 0s;-webkit-transition:0.5s opacity linear 0s, 0s z-index linear 0s;-o-transition:0.5s opacity linear 0s, 0s z-index linear 0s;-ms-transition:0.5s opacity linear 0s, 0s z-index linear 0s;transition:0.5s opacity linear 0s, 0s z-index linear 0s;z-index:200;}
    .game .parchment-left {-moz-transition:0.5s left ease;-webkit-transition:0.5s left ease;-o-transition:0.5s left ease;-ms-transition:0.5s left ease;transition:0.5s left ease;left:41%;}
    .game .parchment-right {-moz-transition:0.5s right ease;-webkit-transition:0.5s right ease;-o-transition:0.5s right ease;-ms-transition:0.5s right ease;transition:0.5s right ease;right:41%;}
    .game .parchment-middle {-moz-transition:0.5s width ease, 0.5s margin-left ease, 0.5s background-position ease;-webkit-transition:0.5s width ease, 0.5s margin-left ease, 0.5s background-position ease;-o-transition:0.5s width ease, 0.5s margin-left ease, 0.5s background-position ease;-ms-transition:0.5s width ease, 0.5s margin-left ease, 0.5s background-position ease;transition:0.5s width ease, 0.5s margin-left ease, 0.5s background-position ease;width:0px;margin-left:0px;}
    .game.credits .parchment-left, .game.death .parchment-left, .game.about .parchment-left {left:0%;}
    .game.credits .parchment-right, .game.death .parchment-right, .game.about .parchment-right {right:0%;}

    #container {z-index:100;background:rgba(0,0,0,0.2);-moz-transition:1s opacity linear 0.5s;-webkit-transition:1s opacity linear 0.5s;-o-transition:1s opacity linear 0.5s;-ms-transition:1s opacity linear 0.5s;transition:1s opacity linear 0.5s;}
    .intro #container {opacity:0;pointer-events:none;position:fixed !important;top:50% !important;left:50% !important;transform:translate(-50%,-50%) !important;width:auto !important;height:auto !important;}
    .game #container {opacity:1;position:relative !important;top:0 !important;left:0 !important;margin:0 auto !important;transform:none !important;width:auto !important;flex-shrink:0;}
    .game #canvasborder {position:relative;overflow:hidden;}
    #logo, #parchment { transition: none !important; }
    
    .game {display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;overflow:hidden;padding-bottom:120px;margin:0;background:#111;}

    @-moz-keyframes flash { 0% {background:#ffa2a2;} 100% {background:#e22525; }}
    @-webkit-keyframes flash { 0% {background:#ffa2a2;} 100% {background:#e22525; }}
    @-o-keyframes flash { 0% {background:#ffa2a2;} 100% {background:#e22525; }}
    @-ms-keyframes flash { 0% {background:#ffa2a2;} 100% {background:#e22525; }}

    @-moz-keyframes glow { from {color:#fcda5c;} to {color:#fff;} }
    @-webkit-keyframes glow { from {color:#fcda5c;} to {color:#fff;} }
    @-o-keyframes glow { from {color:#fcda5c;} to {color:#fff;} }
    @-ms-keyframes glow { from {color:#fcda5c;} to {color:#fff;} }

    @-moz-keyframes logo1 { from { background-position: 0 -42px; } to { background-position: 0 -294px; }}
    @-webkit-keyframes logo1 { from { background-position: 0 -42px; } to { background-position: 0 -294px; }}
    @-o-keyframes logo1 { from { background-position: 0 -42px; } to { background-position: 0 -294px; }}
    @-ms-keyframes logo1 { from { background-position: 0 -42px; } to { background-position: 0 -294px; }}
    @-moz-keyframes logo2 { from { background-position: 0 -84px; } to { background-position: 0 -588px; }}
    @-webkit-keyframes logo2 { from { background-position: 0 -84px; } to { background-position: 0 -588px; }}
    @-o-keyframes logo2 { from { background-position: 0 -84px; } to { background-position: 0 -588px; }}
    @-ms-keyframes logo2 { from { background-position: 0 -84px; } to { background-position: 0 -588px; }}
    @-moz-keyframes logo3 { from { background-position: 0 -126px; } to { background-position: 0 -882px; }}
    @-webkit-keyframes logo3 { from { background-position: 0 -126px; } to { background-position: 0 -882px; }}
    @-o-keyframes logo3 { from { background-position: 0 -126px; } to { background-position: 0 -882px; }}
    @-ms-keyframes logo3 { from { background-position: 0 -126px; } to { background-position: 0 -882px; }}

    @-moz-keyframes parchleft { 0% { left:0%; } 45% { left:41%; } 55% { left:41%; } 100% { left:0%; }}
    @-webkit-keyframes parchleft { 0% { left:0%; } 45% { left:41%; } 55% { left:41%; } 100% { left:0%; }}
    @-o-keyframes parchleft { 0% { left:0%; } 45% { left:41%; } 55% { left:41%; } 100% { left:0%; }}
    @-ms-keyframes parchleft { 0% { left:0%; } 45% { left:41%; } 55% { left:41%; } 100% { left:0%; }}
    @-moz-keyframes parchright { 0% {right:0%; } 45% { right:41%; } 55% { right:41%; } 100% { right:0%; }}
    @-webkit-keyframes parchright { 0% {right:0%; } 45% { right:41%; } 55% { right:41%; } 100% { right:0%; }}
    @-o-keyframes parchright { 0% {right:0%; } 45% { right:41%; } 55% { right:41%; } 100% { right:0%; }}
    @-ms-keyframes parchright { 0% {right:0%; } 45% { right:41%; } 55% { right:41%; } 100% { right:0%; }}

    @-moz-keyframes parchmiddle3 {
        0% {width:1038px;margin-left:-519px;background-position:-114px -882px;}
        45% {width:0px;margin-left:0px;background-position: -633px -882px;}
        55% {width:0px;margin-left:0px;background-position: -633px -882px;}
        100% {width:1038px;margin-left:-519px;background-position: -114px -882px;}
    }
    @-webkit-keyframes parchmiddle3 {
        0% {width:1038px;margin-left:-519px;background-position:-114px -882px;}
        45% {width:0px;margin-left:0px;background-position: -633px -882px;}
        55% {width:0px;margin-left:0px;background-position: -633px -882px;}
        100% {width:1038px;margin-left:-519px;background-position: -114px -882px;}
    }
    @-o-keyframes parchmiddle3 {
        0% {width:1038px;margin-left:-519px;background-position:-114px -882px;}
        45% {width:0px;margin-left:0px;background-position: -633px -882px;}
        55% {width:0px;margin-left:0px;background-position: -633px -882px;}
        100% {width:1038px;margin-left:-519px;background-position: -114px -882px;}
    }
    @-ms-keyframes parchmiddle3 {
        0% {width:1038px;margin-left:-519px;background-position:-114px -882px;}
        45% {width:0px;margin-left:0px;background-position: -633px -882px;}
        55% {width:0px;margin-left:0px;background-position: -633px -882px;}
        100% {width:1038px;margin-left:-519px;background-position: -114px -882px;}
    }

    @-moz-keyframes parchmiddle2 {
        0% {width:692px;margin-left:-346px;background-position:-76px -588px;}
        45% {width:0px;margin-left:0px;background-position: -422px -588px;}
        55% {width:0px;margin-left:0px;background-position: -422px -588px;}
        100% {width:692px;margin-left:-346px;background-position:-76px -588px;}
    }
    @-webkit-keyframes parchmiddle2 {
        0% {width:692px;margin-left:-346px;background-position:-76px -588px;}
        45% {width:0px;margin-left:0px;background-position: -422px -588px;}
        55% {width:0px;margin-left:0px;background-position: -422px -588px;}
        100% {width:692px;margin-left:-346px;background-position:-76px -588px;}
    }
    @-o-keyframes parchmiddle2 {
        0% {width:692px;margin-left:-346px;background-position:-76px -588px;}
        45% {width:0px;margin-left:0px;background-position: -422px -588px;}
        55% {width:0px;margin-left:0px;background-position: -422px -588px;}
        100% {width:692px;margin-left:-346px;background-position:-76px -588px;}
    }
    @-ms-keyframes parchmiddle2 {
        0% {width:692px;margin-left:-346px;background-position:-76px -588px;}
        45% {width:0px;margin-left:0px;background-position: -422px -588px;}
        55% {width:0px;margin-left:0px;background-position: -422px -588px;}
        100% {width:692px;margin-left:-346px;background-position:-76px -588px;}
    }

    @-moz-keyframes parchmiddle1 {
        0% {width:346px;margin-left:-173px;background-position:-38px -294px;}
        45% {width:0px;margin-left:0px;background-position: -211px -294px;}
        55% {width:0px;margin-left:0px;background-position: -211px -294px;}
        100% {width:346px;margin-left:-173px;background-position:-38px -294px;}
    }
    @-webkit-keyframes parchmiddle1 {
        0% {width:346px;margin-left:-173px;background-position:-38px -294px;}
        45% {width:0px;margin-left:0px;background-position: -211px -294px;}
        55% {width:0px;margin-left:0px;background-position: -211px -294px;}
        100% {width:346px;margin-left:-173px;background-position:-38px -294px;}
    }
    @-o-keyframes parchmiddle1 {
        0% {width:346px;margin-left:-173px;background-position:-38px -294px;}
        45% {width:0px;margin-left:0px;background-position: -211px -294px;}
        55% {width:0px;margin-left:0px;background-position: -211px -294px;}
        100% {width:346px;margin-left:-173px;background-position:-38px -294px;}
    }
    @-ms-keyframes parchmiddle1 {
        0% {width:346px;margin-left:-173px;background-position:-38px -294px;}
        45% {width:0px;margin-left:0px;background-position: -211px -294px;}
        55% {width:0px;margin-left:0px;background-position: -211px -294px;}
        100% {width:346px;margin-left:-173px;background-position:-38px -294px;}
    }


    @-moz-keyframes coinsparks1 { from { background-position: -216px -248px; } to { background-position: -360px -248px; }}
    @-webkit-keyframes coinsparks1 { from { background-position: -216px -248px; } to { background-position: -360px -248px; }}
    @-o-keyframes coinsparks1 { from { background-position: -216px -248px; } to { background-position: -360px -248px; }}
    @-ms-keyframes coinsparks1 { from { background-position: -216px -248px; } to { background-position: -360px -248px; }}
    @-moz-keyframes coinsparks2 { from { background-position: -432px -496px; } to { background-position: -720px -496px; }}
    @-webkit-keyframes coinsparks2 { from { background-position: -432px -496px; } to { background-position: -720px -496px; }}
    @-o-keyframes coinsparks2 { from { background-position: -432px -496px; } to { background-position: -720px -496px; }}
    @-ms-keyframes coinsparks2 { from { background-position: -432px -496px; } to { background-position: -720px -496px; }}
    @-moz-keyframes coinsparks3 { from { background-position: -648px -744px; } to { background-position: -1080px -744px; }}
    @-webkit-keyframes coinsparks3 { from { background-position: -648px -744px; } to { background-position: -1080px -744px; }}
    @-o-keyframes coinsparks3 { from { background-position: -648px -744px; } to { background-position: -1080px -744px; }}
    @-ms-keyframes coinsparks3 { from { background-position: -648px -744px; } to { background-position: -1080px -744px; }}

    @-moz-keyframes invincible { from {background:#fa6a00;} to {background:#fabc00;} }
    @-webkit-keyframes invincible { from {background:#fa6a00;} to {background:#fabc00;} }
    @-o-keyframes invincible { from {background:#fa6a00;} to {background:#fabc00;} }
    @-ms-keyframes invincible { from {background:#fa6a00;} to {background:#fabc00;} }



        @media screen and (min-width: 1501px) {

            .upscaled #logo, .upscaled #logosparks, .upscaled .left-ornament, .upscaled .right-ornament, .upscaled #character, .upscaled #character div, .upscaled .button, .upscaled .button div, .upscaled #respawn, .upscaled #scroll, .upscaled #instructions, .upscaled .icon, .upscaled #tilt, .upscaled .parchment-left, .upscaled .parchment-middle, .upscaled .parchment-right, .upscaled .avatar, .upscaled .facebook, .upscaled .twitter, .upscaled .close, .upscaled .ribbon .top, .upscaled .ribbon .bottom, .upscaled #about .img, .upscaled .ext-link {background-image:url('../img/3/spritesheet.png');}
            .upscaled #bar-container, .upscaled #healthbar, .upscaled .barbutton, .upscaled #chatbox, .upscaled #population {background-image:url('../img/3/barsheet.png');}
            .upscaled #achievements, .upscaled #achievements li, .upscaled .coin, .upscaled #achievement-notification, .upscaled #coinsparks, .upscaled .achievement-sharing a, .upscaled #previous, .upscaled #next {background:url('../img/3/achievements.png');}


        body {background:-moz-radial-gradient(rgba(0,0,0,0) 40%,rgba(0,0,0,1) 125%), url('../img/1/wood2.png') no-repeat 1587px 138px, url('../img/1/wood2.png') no-repeat 51px 519px, url('../img/1/wood3.png') no-repeat 228px 219px, url('../img/1/wood.png') repeat, #000; background-size:auto, 15px auto, 15px auto, 60px auto, 384px;}
        body {background:-webkit-gradient(radial, center center, 360, center center, 1200, from(rgba(0,0,0,0)), to(rgba(0,0,0,1))), url('../img/3/wood2.png') no-repeat 1587px 138px, url('../img/3/wood2.png') no-repeat 51px 519px, url('../img/3/wood3.png') no-repeat 228px 219px, url('../img/3/wood.png') repeat, #000; background-size:auto, 15px auto, 15px auto, 60px auto, 384px;}
        #logo, #logosparks, .left-ornament, .right-ornament, #character, #character div, .button, .button div, #respawn, #scroll, #instructions, .icon, .avatar, .close, #note, .ribbon .top, .ribbon .bottom, #about .img, .ext-link {background-size:1266px auto;}
        #logosparks {width:687px;height:126px;z-index:4;-moz-animation:logo3 .8s steps(6, end) infinite;-webkit-animation:logo3 .8s steps(6, end) infinite;-o-animation:logo3 .8s steps(6, end) infinite;-ms-animation:logo3 .8s steps(6, end) infinite;}
        #parchment, #loadcharacter, #confirmation, #error {width:1266px;height:546px;position:absolute;top:55%;left:50%;margin-left:-633px;margin-top:-273px;font-size:30px;text-align:center;z-index:2;}
        #parchment h1 {margin-top:60px;font-weight:normal;}
        .left-ornament, .right-ornament {height:36px;width:93px;display:inline-block;margin:0 20px;position:relative;top:12px;}
        .left-ornament {background-position:-1062px 0;}
        .right-ornament {background-position:-1155px 0;}
        #character {height:63px;width:36px;margin:0 auto;background-position:-1062px -36px;margin-top:45px;position:relative;}
        #character div {height:63px;width:36px;position:absolute;top:0;left:0;background-position:-1098px -36px;opacity:1;}
        #character.disabled div {opacity:0;pointer-events:none;}
        #parchment input {margin-top:30px; padding:0 15px; border:3px dashed #b2af9b; font-size:30px;border-radius:9px;height:61px;}
        .button {height:153px;width:375px;background-position:-687px -306px;margin:30px auto 0 auto;position:relative;}
        .play div {height:153px;width:375px;background-position:-687px 0px;}
        .play.loading div {background-position:-681px -2178px;}
        .play.loading img {margin-top:-16px;margin-left:-16px;height:32px;width:32px;}
        .play .play-label {font-size:22px;}
        .stroke, .achievement-name {text-shadow:3px 3px 0 #373737, 3px -3px 0 #373737, 0 3px 0 #373737, 3px 0 0 #373737, -3px 3px 0 #373737, -3px -3px 0 #373737, 0 -3px 0 #373737, 0 3px 0 #373737, -3px 0 0 #373737;}

        #loadcharacter h1, #confirmation h1, #error h1 {margin-top:30px;}
        #playername {margin-top:15px;}
        .loadcharacter .play, .confirmation .delete {margin:15px auto 15px auto;}
        #confirmation p, #error p {font-size:30px;margin-top:60px;line-height:40px;}
        #error p {width:70%;margin:60px auto 0;}
        .button.delete {background-position:-687px -153px;}
        .button.delete:active {background-position:0 -2178px;}

                #container {width:1800px;max-width:100%;margin:0 auto;position:relative !important;top:auto !important;margin-top:0 !important;left:auto !important;margin-left:0 !important;}
                #canvasborder {padding:25px;background:url('../img/3/border.png') no-repeat;}
                #canvas {width:100%;height:880px;}
                #fade {width:1750px;height:880px;top:25px;left:25px;}

                #instructions {height:516px;width:1251px;background-position:0 -1581px;margin-left:-624px;margin-top:-279px;color:#373737;}
                #instructions h1 {font-size:40px;text-align:center;margin:50px 0;}
        #instructions ul {font-size:30px;margin-top:30px;}
        #instructions ul li {margin:20px 0; clear:left;}
        #instructions li:nth-child(1) span {height:87px;width:45px;background-position:-1134px -36px; display:block;float:left;margin: 0 30px 9px 60px;position: relative;top: -39px;}
        #instructions li:nth-child(2) span {height:48px;width:39px;background-position:-1179px -36px; display:block;float:left;margin: 0 36px 42px 60px;position: relative;top: -9px;}
        #instructions li:nth-child(3) span {height:63px;width:48px;background-position:-1218px -36px; display:block;float:left;margin: 0 27px 0 60px;position: relative;top: -18px;}
        #instructions p {text-align:center;font-family:'GraphicPixel';font-size:20px;clear:left;margin-top:50px;}

        #playerimage {height: 96px; width: 96px;}

        .close {height:48px;width:48px;top:-12px;right:-15px;background-position:-1062px -378px;}
        .close:hover {background-position:-1110px -378px;}
        .close:active {background-position:-1158px -378px;}

        .ribbon {width:54px;right:30px;top:12px;}
        .ribbon .top {width:100%;height:18px;background-position:-1143px -516px;}
        .ribbon .bottom {width:100%;height:66px;background-position:-1143px -555px;}
        .ribbon:hover .top {height:30px;}
        .ribbon:hover .bottom {background-position:-1197px -555px;}
        #createcharacter .ribbon {right:30px;top:12px;}
        #loadcharacter .ribbon {right:148px;top:-13px;}

        /*Death & Respawn*/
        #death p {font-size:30px;margin-top:140px;}
        #death p em {margin-top:50px;}
                #respawn {width:375px;height:153px;margin:60px auto 0 auto;background-position: 0 -1428px;}
                #respawn:active {background-position:-375px -1428px;}


                /*Bubbles*/
                #bubbles {width:1440px;height:672px;margin-bottom:-672px;position:relative;top:-672px;pointer-events:none;}
                p {font-family:arial, sans-serif;font-size:12px;margin:0;padding:12px 0}
            .bubble p {font-family:"GraphicPixel"; font-size:18px;line-height:24px;}

            /*GUI Bar*/
            #bar-container {height:51px;top:-3px;background-size:1440px;}

                #healthbar {height:39px;background-position:0 -51px;width:306px;top:9px;background-size:1440px;z-index:20;}
                #hitpoints {width:0px;height:33px;top:12px;left:33px;z-index:10;position:absolute;}

        #armor, #weapon {width:48px;height:48px;position:absolute;background-size:288px;background-position:-96px;}
        #weapon {left:312px;top:3px;background-size:288px;}
        #armor {left:363px;top:3px;}

        #notifications {width:588px;margin-left:-294px;font-size:20px;color:#eee;top:6px;height:45px;}
        #notifications div.top {top:-45px;}
        #notifications span {line-height:45px;height:45px;}

        #playercount {font-size:20px;left:1076px;top:18px;width:172px;text-align:center;}
        #population {background-size:1440px;right:105px;bottom:66px;width:393px;background-position:-720px -144px;font-size:20px;line-height:30px;}
        #population.visible {height:96px;}
        #instance-population {padding-top:18px;}


        .barbutton {background-size:1440px;height:45px;width:42px;}
        #chatbutton {background-position:-306px -51px;top:3px;right:135px;}
        #chatbutton:hover {background-position:-348px -51px;}
        #chatbutton.active {background-position:-390px -51px;}
        #achievementsbutton {background-position:-432px -51px;top:3px;right:90px;}
        #achievementsbutton:hover, #achievementsbutton.blink:hover {background-position:-474px -51px;}
        #achievementsbutton.blink {background-position:-864px -51px;}
        #achievementsbutton.active {background-position:-516px -51px;}
        #helpbutton {background-position:-558px -51px;top:3px;right:45px;}
        #helpbutton:hover {background-position:-600px -51px;}
        #helpbutton.active {background-position:-642px -51px;}
        #mutebutton {background-position:-684px -51px;top:3px;right:0;}
        #mutebutton:hover {background-position:-726px -51px;}
        #mutebutton.active {background-position:-768px -51px;}

        #chatbox {height:48px;width:1182px;background-size:1440px;background-position:0 -96px;margin-left:-591px;bottom:18px;}
        #chatbox.active {bottom:66px;}
                #chatbox input {font-size:20px;color:#eee;background:none;width:90%;border:0;margin-left:2%;padding:16px 0;}

                /*Credits*/
        #credits, #death, #about {width:1266px;height:546px;margin-left:-633px;margin-top:-273px;font-size:30px;}
        .parchment-left, .parchment-right, .parchment-middle {background-size:1266px;}
        .parchment-left {width:114px;height:546px;background-position:0 -882px;}
        .parchment-right {width:114px;height:546px;background-position:-1152px -882px;}
        .parchment-middle {height:546px;background-position:-114px -882px;width:1038px;margin-left:-519px;}

        #credits h1, #about h1 {margin-top:35px;font-weight:normal;}
        #credits h1 a {font-size:36px;}
        .game #credits h1, .game #about h1 {margin-top:52px;}
        #credits h1 span.title {max-width:300px;display:inline-block;line-height:39px;margin-top:-90px;position:relative;top:36px;}
        #authors {clear:both;margin-top:100px;}
        #guillaume, #franck {width:47%;line-height:36px;}
        #guillaume {float:left;text-align:right;}
        #franck {float:right;text-align:left;}
        .avatar {height:75px;width:39px;}
        #guillaume .avatar {float:right;background-position:-1062px -303px;margin-left:60px;}
        #franck .avatar {float:left;background-position:-1101px -303px;margin-right:60px;}
        #seb {margin:270px auto 0 auto;width:54%;color:#373737;font-size:25px;}
        #seb a {color:#373737;text-decoration:none;}
        #seb a:hover {color:#397cd8;}
        #note {float:left;background-position:-1203px -336px;height:33px;width:30px;}
        #close-credits {margin:45px auto 0 auto;text-align:center;clear:both;font-size:20px;color:#373737;}
        #sharing {width:240px;}

        /*About*/
        #about h1 span.title {max-width:400px;display:inline-block;line-height:39px;margin-top:-90px;position:relative;}
        #close-about {margin:230px auto 0 auto;text-align:center;clear:both;font-size:20px;color:#373737;}
        #about #game-desc {font-size:28px;text-align:center;max-width:70%;margin:30px auto;line-height:34px;}
        #about .left p, #about .right p {font-size:20px;text-align:left;line-height:26px;padding:0;margin-top:-10px;}
        #about .left {width:31%;float:left;margin-left:12%;}
        #about .right {width:37%;float:right;margin-right:12%;}
        #about .left .img {height:90px;width:81px;float:left;background-position:-1062px -516px;margin-right:20px;}
        #about .right .img {height:90px;width:168px;float:left;background-position:-1062px -426px;margin-right:20px;}
        #about .link {clear:both;font-size:20px;margin:30px 0;display:block;text-align:left;line-height:16px;}
        #about .link a {color:#2e7fdd;text-decoration:none;}
        #about .link .ext-link {height:18px;width:18px;background-position:-1197px -516px;display:block;float:left;margin-right:10px;}

        .animate .parchment-middle {-moz-animation:parchmiddle3 1s ease 1;-webkit-animation:parchmiddle3 1s ease 1;-o-animation:parchmiddle3 1s ease 1;-ms-animation:parchmiddle3 1s ease 1;}

        .game .parchment-middle {background-position: -633px -882px;}
        .game.credits .parchment-middle, .game.death .parchment-middle, .game.about .parchment-middle {width:1038px;margin-left:-519px;background-position: -114px -882px;}

            footer {font-size:20px;}
        #resize-check {height:3px;}
        }

        @media screen and (max-width: 1500px) {

            .upscaled #logo, .upscaled #logosparks, .upscaled .left-ornament, .upscaled .right-ornament, .upscaled #character, .upscaled #character div, .upscaled .button, .upscaled .button div, .upscaled #respawn, .upscaled #scroll, .upscaled #instructions, .upscaled .icon, .upscaled #tilt, .upscaled .parchment-left, .upscaled .parchment-middle, .upscaled .parchment-right, .upscaled .avatar, .upscaled .facebook, .upscaled .twitter, .upscaled .close, .upscaled .ribbon .top, .upscaled .ribbon .bottom, .upscaled #about .img, .upscaled .ext-link {background-image:url('../img/2/spritesheet.png');}
            .upscaled #bar-container, .upscaled #healthbar, .upscaled .barbutton, .upscaled #chatbox, .upscaled #population {background-image:url('../img/2/barsheet.png');}
            .upscaled #achievements, .upscaled #achievements li, .upscaled .coin, .upscaled #achievement-notification, .upscaled #coinsparks, .upscaled .achievement-sharing a, .upscaled #previous, .upscaled #next {background:url('../img/2/achievements.png');}

        body {background:url('../img/1/wood.png') repeat, #000; background-size:256px;}        
        body {background:url('../img/2/wood.png') repeat, #000; background-size:256px;}
        #logo, #logosparks, .left-ornament, .right-ornament, #character, #character div, .button, .button div, #respawn, #scroll, #instructions, .icon, .avatar, .close, #note, .ribbon .top, .ribbon .bottom, #about .img, .ext-link {background-size:844px auto;}
        #logosparks {width:458px;height:84px;z-index:4;-moz-animation:logo2 .8s steps(6, end) infinite;-webkit-animation:logo2 .8s steps(6, end) infinite;-o-animation:logo2 .8s steps(6, end) infinite;-ms-animation:logo2 .8s steps(6, end) infinite;}
        #parchment, #loadcharacter, #confirmation, #error {width:844px;height:364px;position:absolute;top:55%;left:50%;margin-left:-422px;margin-top:-182px;font-size:20px;text-align:center; z-index:2;}
        #parchment h1 {margin-top:40px;font-weight:normal;}
        .left-ornament, .right-ornament {height:24px;width:62px;display:inline-block;margin:0 15px;position:relative;top:7px;}
        .left-ornament {background-position:-708px 0;}
        .right-ornament {background-position:-770px 0;}
        #character {height:42px;width:24px;margin:0 auto;background-position:-708px -24px;margin-top:30px;position:relative;}
        #character div {height:42px;width:24px;position:absolute;top:0;left:0;background-position:-732px -24px;opacity:1;}
        #character.disabled div {opacity:0;pointer-events:none;}
        #parchment input {margin-top:20px; padding:0 10px; border:2px dashed #b2af9b; font-size:20px;border-radius:6px;height:41px;}
        .button {height:102px;width:250px;background-position:-458px -204px;margin:20px auto 0 auto;position:relative;}
        .play div {height:102px;width:250px;background-position:-458px 0px;}
        .play.loading div {background-position:-454px -1452px;}
        .play.loading img {margin-top:-12px;margin-left:-12px;height:24px;width:24px;}
        .play .play-label {font-size:16px;}
        .stroke, .achievement-name {text-shadow:2px 2px 0 #373737, 2px -2px 0 #373737, 0 2px 0 #373737, 2px 0 0 #373737, -2px 2px 0 #373737, -2px -2px 0 #373737, 0 -2px 0 #373737, 0 2px 0 #373737, -2px 0 0 #373737;}

        #loadcharacter h1, #confirmation h1, #error h1 {margin-top:20px;}
        #playername {margin-top:10px;}
        .loadcharacter .play, .confirmation .delete {margin:10px auto 10px auto;}
        #confirmation p, #error p {font-size:20px;margin-top:40px;line-height:30px;}
        #error p {width:70%;margin:40px auto 0;}
        .button.delete {background-position:-458px -102px;}
        .button.delete:active {background-position:0 -1452px;}

                #container {width:980px;margin:0 auto;position:relative !important;top:auto !important;margin-top:0 !important;left:auto !important;margin-left:0 !important;}
                #canvasborder {padding:10px;background:url('../img/2/border.png') no-repeat;}
                #canvas {width:100%;height:448px;}
                #fade {width:960px;height:448px;top:10px;left:10px;}

                #instructions {height:344px;width:834px;background-position:0 -1054px;margin-left:-416px;margin-top:-186px;color:#373737;}
                #instructions h1 {font-size:30px;text-align:center;margin:40px 0;}
        #instructions ul {font-size:20px;margin-top:40px;}
        #instructions ul li {margin:20px 0; clear:left;}
        #instructions li:nth-child(1) span {height:58px;width:30px;background-position:-756px -24px; display:block;float:left;margin: 0 20px 6px 40px;position: relative;top: -26px;}
        #instructions li:nth-child(2) span {height:32px;width:26px;background-position:-786px -24px; display:block;float:left;margin: 0 24px 28px 40px;position: relative;top: -6px;}
        #instructions li:nth-child(3) span {height:42px;width:32px;background-position:-812px -24px; display:block;float:left;margin: 0 18px 0 40px;position: relative;top: -12px;}
        #instructions p {text-align:center;font-family:'GraphicPixel';font-size:20px;clear:left;margin-top:20px;}

        #playerimage {height: 64px; width: 64px;}

        .close {height:32px;width:32px;top:-8px;right:-10px;background-position:-708px -252px;}
        .close:hover {background-position:-740px -252px;}
        .close:active {background-position:-772px -252px;}

        .ribbon {width:36px;right:20px;top:8px;}
        .ribbon .top {width:100%;height:12px;background-position:-762px -344px;}
        .ribbon .bottom {width:100%;height:44px;background-position:-762px -370px;}
        .ribbon:hover .top {height:20px;}
        .ribbon:hover .bottom {background-position:-798px -370px;}
        #createcharacter .ribbon {right:20px;top:8px;}
        #loadcharacter .ribbon {right:99px;top:-8px;}

        /*Death & Respawn*/
        #death p {font-size:20px;margin-top:90px;}
        #death p em {margin-top:30px;}
                #respawn {width:250px;height:102px;margin:40px auto 0 auto;background-position: 0 -952px;}
                #respawn:active {background-position:-250px -952px;}

                /*Bubbles*/
                #bubbles {width:960px;height:448px;margin-bottom:-448px;position:relative;top:-448px;pointer-events:none;}
                p {font-family:arial, sans-serif;font-size:12px;margin:0;padding:0;line-height:35px;}
            .bubble p {font-family:"GraphicPixel"; font-size:14px;}

            /*GUI Bar*/
                #bar-container {height:34px;top:-2px;background-size:960px;}

                #healthbar {height:26px;background-position:0 -34px;width:204px;top:6px;background-size:960px;z-index:20;}
                #hitpoints {width:0px;height:22px;top:8px;left:22px;z-index:10;position:absolute;}

        #armor, #weapon {width:32px;height:32px;position:absolute;background-size:192px;background-position:-64px;}
        #weapon {left:208px;top:2px;}
        #armor {left:242px;top:2px;}

        #notifications {width:392px;margin-left:-196px;font-size:16px;color:#eee;top:2px;height:30px;}
        #notifications div.top {top:-30px;}
        #notifications span {line-height:30px;height:30px;}
        .windows #notifications span {line-height:34px;}

        #playercount {font-size:16px;left:717px;top:10px;width:114px;text-align:center;}
        #population {background-size:960px;right:70px;bottom:44px;width:262px;background-position:-480px -96px;font-size:14px;line-height:20px;}
        #population.visible {height:64px;}
        #instance-population {padding-top:12px;}

        .barbutton {background-size:960px;height:30px;width:28px;}
        #chatbutton {background-position:-204px -34px;top:2px;right:90px;}
        #chatbutton:hover {background-position:-232px -34px;}
        #chatbutton.active {background-position:-260px -34px;}
        #achievementsbutton {background-position:-288px -34px;top:2px;right:60px;}
        #achievementsbutton:hover, #achievementsbutton.blink:hover {background-position:-316px -34px;}
        #achievementsbutton.blink {background-position:-576px -34px;}
        #achievementsbutton.active {background-position:-344px -34px;}
        #helpbutton {background-position:-372px -34px;top:2px;right:30px;}
        #helpbutton:hover {background-position:-400px -34px;}
        #helpbutton.active {background-position:-428px -34px;}
        #mutebutton {background-position:-456px -34px;top:2px;right:0;}
        #mutebutton:hover {background-position:-484px -34px;}
        #mutebutton.active {background-position:-512px -34px;}
        #leaderboardbutton {top:2px;left:960px;font-size:11px;line-height:30px;text-align:center;background:none;color:#fff;font-weight:bold;}
        #leaderboardbutton:hover {color:#fce045;}

                #chatbox {height:32px;width:788px;background-size:960px;background-position:0 -64px;margin-left:-394px;bottom:12px;}
                #chatbox.active {bottom:44px;}
                #chatbox input {font-size:20px;color:#eee;background:none;width:90%;border:0;margin-left:2%;padding:7px 0;}

                /*Credits*/
        #credits, #death, #about {width:844px;height:364px;margin-left:-422px;margin-top:-182px;font-size:20px;}
        .parchment-left, .parchment-right, .parchment-middle {background-size:844px;}
        .parchment-left {width:76px;height:364px;background-position:0 -588px;}
        .parchment-right {width:76px;height:364px;background-position:-768px -588px;}
        .parchment-middle {height:364px;background-position:-76px -588px;width:692px;margin-left:-346px;}

        #credits h1, #about h1 {margin-top:25px;font-weight:normal;}
        #credits h1 a {font-size:24px;}
        .game #credits h1, .game #about h1 {margin-top:40px;}
        #credits h1 span.title {max-width:200px;display:inline-block;line-height:26px;margin-top:-60px;position:relative;top:24px;}
        #authors {clear:both;margin-top:70px;}
        #guillaume, #franck {width:47%;line-height:26px;}
        #guillaume {float:left;text-align:right;}
        #franck {float:right;text-align:left;}
        .avatar {height:50px;width:26px;}
        #guillaume .avatar {float:right;background-position:-708px -202px;margin-left:40px;}
        #franck .avatar {float:left;background-position:-734px -202px;margin-right:40px;}
        #seb {margin:180px auto 0 auto;width:52%;color:#373737;font-size:16px;}
        #seb a {color:#373737;text-decoration:none;}
        #seb a:hover {color:#397cd8;}
        #note {float:left;background-position:-802px -224px;height:22px;width:20px;}
        #close-credits {margin:20px auto 0 auto;text-align:center;clear:both;font-size:14px;}
        #sharing {width:202px;}

        /*About*/
        #about h1 span.title {max-width:400px;display:inline-block;line-height:24px;margin-top:-90px;position:relative;}
        #close-about {margin:153px auto 0 auto;text-align:center;clear:both;font-size:14px;color:#373737;}
        #about #game-desc {font-size:18px;text-align:center;max-width:70%;margin:25px auto;line-height:24px;}
        #about .left p, #about .right p {font-size:14px;text-align:left;line-height:20px;padding:0;margin-top:-8px;}
        .windows #about .left p, .windows #about .right p {font-size:13px;text-align:left;line-height:20px;padding:0;margin-top:-10px;}
        #about .left {width:31%;float:left;margin-left:12%;}
        #about .right {width:37%;float:right;margin-right:12%;}
        #about .left .img {height:60px;width:54px;float:left;background-position:-708px -344px;margin-right:14px;}
        #about .right .img {height:60px;width:112px;float:left;background-position:-708px -284px;margin-right:14px;}
        #about .link {clear:both;font-size:14px;margin:20px 0;display:block;text-align:left;line-height:10px;}
        #about .link a {color:#2e7fdd;text-decoration:none;}
        #about .link .ext-link {height:12px;width:12px;background-position:-798px -344px;display:block;float:left;margin-right:7px;}

        .animate .parchment-middle {-moz-animation:parchmiddle2 1s ease 1;-webkit-animation:parchmiddle2 1s ease 1;-o-animation:parchmiddle2 1s ease 1;-ms-animation:parchmiddle2 1s ease 1;}

        .game .parchment-middle {background-position: -422px -588px;}
        .game.credits .parchment-middle, .game.death .parchment-middle, .game.about .parchment-middle {width:692px;margin-left:-346px;background-position: -76px -588px;}

            footer {font-size:16px;}
        #resize-check {height:2px;}
        }

        @media screen and (max-height: 870px) {

            .upscaled #logo, .upscaled #logosparks, .upscaled .left-ornament, .upscaled .right-ornament, .upscaled #character, .upscaled #character div, .upscaled .button, .upscaled .button div, .upscaled #respawn, .upscaled #scroll, .upscaled #instructions, .upscaled .icon, .upscaled #tilt, .upscaled .parchment-left, .upscaled .parchment-middle, .upscaled .parchment-right, .upscaled .avatar, .upscaled .facebook, .upscaled .twitter, .upscaled .close, .upscaled .ribbon .top, .upscaled .ribbon .bottom, .upscaled #about .img, .upscaled .ext-link {background-image:url('../img/2/spritesheet.png');}
            .upscaled #bar-container, .upscaled #healthbar, .upscaled .barbutton, .upscaled #chatbox, .upscaled #population {background-image:url('../img/2/barsheet.png');}
            .upscaled #achievements, .upscaled #achievements li, .upscaled .coin, .upscaled #achievement-notification, .upscaled #coinsparks, .upscaled .achievement-sharing a, .upscaled #previous, .upscaled #next {background:url('../img/2/achievements.png');}

        body {background:url('../img/1/wood.png') repeat, #000; background-size:256px;}        
        body {background:url('../img/2/wood.png') repeat, #000; background-size:256px;}
        #logo, #logosparks, .left-ornament, .right-ornament, #character, #character div, .button, .button div, #respawn, #scroll, #instructions, .icon, .avatar, .close, #note, .ribbon .top, .ribbon .bottom, #about .img, .ext-link {background-size:844px auto;}
        #logosparks {width:458px;height:84px;z-index:4;-moz-animation:logo2 .8s steps(6, end) infinite;-webkit-animation:logo2 .8s steps(6, end) infinite;-o-animation:logo2 .8s steps(6, end) infinite;-ms-animation:logo2 .8s steps(6, end) infinite;}
        #parchment, #loadcharacter, #confirmation, #error {width:844px;height:364px;position:absolute;top:55%;left:50%;margin-left:-422px;margin-top:-182px;font-size:20px;text-align:center; z-index:2;}
        #parchment h1 {margin-top:40px;font-weight:normal;}
        .left-ornament, .right-ornament {height:24px;width:62px;display:inline-block;margin:0 15px;position:relative;top:7px;}
        .left-ornament {background-position:-708px 0;}
        .right-ornament {background-position:-770px 0;}
        #character {height:42px;width:24px;margin:0 auto;background-position:-708px -24px;margin-top:30px;position:relative;}
        #character div {height:42px;width:24px;position:absolute;top:0;left:0;background-position:-732px -24px;opacity:1;}
        #character.disabled div {opacity:0;pointer-events:none;}
        #parchment input {margin-top:20px; padding:0 10px; border:2px dashed #b2af9b; font-size:20px;border-radius:6px;height:41px;}
        .button {height:102px;width:250px;background-position:-458px -204px;margin:20px auto 0 auto;position:relative;}
        .play div {height:102px;width:250px;background-position:-458px 0px;}
        .play.loading div {background-position:-454px -1452px;}
        .play.loading img {margin-top:-12px;margin-left:-12px;height:24px;width:24px;}
        .play .play-label {font-size:16px;}
        .stroke, .achievement-name {text-shadow:2px 2px 0 #373737, 2px -2px 0 #373737, 0 2px 0 #373737, 2px 0 0 #373737, -2px 2px 0 #373737, -2px -2px 0 #373737, 0 -2px 0 #373737, 0 2px 0 #373737, -2px 0 0 #373737;}

        #loadcharacter h1, #confirmation h1, #error h1 {margin-top:20px;}
        #playername {margin-top:10px;}
        .loadcharacter .play, .confirmation .delete {margin:10px auto 10px auto;}
        #confirmation p, #error p {font-size:20px;margin-top:40px;line-height:30px;}
        #error p {width:70%;margin:40px auto 0;}
        .button.delete {background-position:-458px -102px;}
        .button.delete:active {background-position:0 -1452px;}

                #container {width:980px;margin:0 auto;position:relative !important;top:auto !important;margin-top:0 !important;left:auto !important;margin-left:0 !important;}
                #canvasborder {padding:10px;background:url('../img/2/border.png') no-repeat;}
                #canvas {width:100%;height:448px;}
                #fade {width:960px;height:448px;top:10px;left:10px;}

                #instructions {height:344px;width:834px;background-position:0 -1054px;margin-left:-416px;margin-top:-186px;color:#373737;}
                #instructions h1 {font-size:30px;text-align:center;margin:40px 0;}
        #instructions ul {font-size:20px;margin-top:40px;}
        #instructions ul li {margin:20px 0; clear:left;}
        #instructions li:nth-child(1) span {height:58px;width:30px;background-position:-756px -24px; display:block;float:left;margin: 0 20px 6px 40px;position: relative;top: -26px;}
        #instructions li:nth-child(2) span {height:32px;width:26px;background-position:-786px -24px; display:block;float:left;margin: 0 24px 28px 40px;position: relative;top: -6px;}
        #instructions li:nth-child(3) span {height:42px;width:32px;background-position:-812px -24px; display:block;float:left;margin: 0 18px 0 40px;position: relative;top: -12px;}
        #instructions p {text-align:center;font-family:'GraphicPixel';font-size:20px;clear:left;margin-top:20px;}

        #playerimage {height: 64px; width: 64px;}

        .close {height:32px;width:32px;top:-8px;right:-10px;background-position:-708px -252px;}
        .close:hover {background-position:-740px -252px;}
        .close:active {background-position:-772px -252px;}

        .ribbon {width:36px;right:20px;top:8px;}
        .ribbon .top {width:100%;height:12px;background-position:-762px -344px;}
        .ribbon .bottom {width:100%;height:44px;background-position:-762px -370px;}
        .ribbon:hover .top {height:20px;}
        .ribbon:hover .bottom {background-position:-798px -370px;}
        #createcharacter .ribbon {right:20px;top:8px;}
        #loadcharacter .ribbon {right:99px;top:-8px;}

        /*Death & Respawn*/
        #death p {font-size:20px;margin-top:90px;}
        #death p em {margin-top:30px;}
                #respawn {width:250px;height:102px;margin:40px auto 0 auto;background-position: 0 -952px;}
                #respawn:active {background-position:-250px -952px;}

                /*Bubbles*/
                #bubbles {width:960px;height:448px;margin-bottom:-448px;position:relative;top:-448px;pointer-events:none;}
                p {font-family:arial, sans-serif;font-size:12px;margin:0;padding:0;}
            .bubble p {font-family:"GraphicPixel"; font-size:14px;line-height:35px;}

            /*GUI Bar*/
                #bar-container {height:34px;top:-2px;background-size:960px;}

                #healthbar {height:26px;background-position:0 -34px;width:204px;top:6px;background-size:960px;z-index:20;}
                #hitpoints {width:0px;height:22px;top:8px;left:22px;z-index:10;position:absolute;}

        #armor, #weapon {width:32px;height:32px;position:absolute;background-size:192px;background-position:-64px;}
        #weapon {left:208px;top:2px;}
        #armor {left:242px;top:2px;}

        #notifications {width:392px;margin-left:-196px;font-size:16px;color:#eee;top:2px;height:30px;}
        #notifications div.top {top:-30px;}
        #notifications span {line-height:30px;height:30px;}
        .windows #notifications span {line-height:34px;}

        #playercount {font-size:16px;left:717px;top:10px;width:114px;text-align:center;}
        #population {background-size:960px;right:70px;bottom:44px;width:262px;background-position:-480px -96px;font-size:14px;line-height:20px;}
        #population.visible {height:64px;}
        #instance-population {padding-top:12px;}

        .barbutton {background-size:960px;height:30px;width:28px;}
        #chatbutton {background-position:-204px -34px;top:2px;right:90px;}
        #chatbutton:hover {background-position:-232px -34px;}
        #chatbutton.active {background-position:-260px -34px;}
        #achievementsbutton {background-position:-288px -34px;top:2px;right:60px;}
        #achievementsbutton:hover, #achievementsbutton.blink:hover {background-position:-316px -34px;}
        #achievementsbutton.blink {background-position:-576px -34px;}
        #achievementsbutton.active {background-position:-344px -34px;}
        #helpbutton {background-position:-372px -34px;top:2px;right:30px;}
        #helpbutton:hover {background-position:-400px -34px;}
        #helpbutton.active {background-position:-428px -34px;}
        #mutebutton {background-position:-456px -34px;top:2px;right:0;}
        #mutebutton:hover {background-position:-484px -34px;}
        #mutebutton.active {background-position:-512px -34px;}
        #leaderboardbutton {top:2px;left:960px;font-size:11px;line-height:30px;text-align:center;background:none;color:#fff;font-weight:bold;}
        #leaderboardbutton:hover {color:#fce045;}

                #chatbox {height:32px;width:788px;background-size:960px;background-position:0 -64px;margin-left:-394px;bottom:12px;}
                #chatbox.active {bottom:44px;}
                #chatbox input {font-size:20px;color:#eee;background:none;width:90%;border:0;margin-left:2%;padding:7px 0;}

                /*Credits*/
        #credits, #death, #about {width:844px;height:364px;margin-left:-422px;margin-top:-182px;font-size:20px;}
        .parchment-left, .parchment-right, .parchment-middle {background-size:844px;}
        .parchment-left {width:76px;height:364px;background-position:0 -588px;}
        .parchment-right {width:76px;height:364px;background-position:-768px -588px;}
        .parchment-middle {height:364px;background-position:-76px -588px;width:692px;margin-left:-346px;}

        #credits h1, #about h1 {margin-top:25px;font-weight:normal;}
        #credits h1 a {font-size:24px;}
        #credits h1 span.title {max-width:200px;display:inline-block;line-height:26px;margin-top:-60px;position:relative;top:24px;}
        #authors {clear:both;margin-top:70px;}
        #guillaume, #franck {width:47%;line-height:26px;}
        #guillaume {float:left;text-align:right;}
        #franck {float:right;text-align:left;}
        .avatar {height:50px;width:26px;}
        #guillaume .avatar {float:right;background-position:-708px -202px;margin-left:40px;}
        #franck .avatar {float:left;background-position:-734px -202px;margin-right:40px;}
        #seb {margin:180px auto 0 auto;width:52%;color:#373737;font-size:16px;}
        #seb a {color:#373737;text-decoration:none;}
        #seb a:hover {color:#397cd8;}
        #note {float:left;background-position:-802px -224px;height:22px;width:20px;}
        #close-credits {margin:20px auto 0 auto;text-align:center;clear:both;font-size:14px;}
        #sharing {width:202px;}

        /*About*/
        #about h1 span.title {max-width:400px;display:inline-block;line-height:24px;margin-top:-90px;position:relative;}
        #close-about {margin:153px auto 0 auto;text-align:center;clear:both;font-size:14px;color:#373737;}
        #about #game-desc {font-size:18px;text-align:center;max-width:70%;margin:25px auto;line-height:24px;}
        #about .left p, #about .right p {font-size:14px;text-align:left;line-height:20px;padding:0;margin-top:-8px;}
        .windows #about .left p, .windows #about .right p {font-size:13px;text-align:left;line-height:20px;padding:0;margin-top:-10px;}
        #about .left {width:31%;float:left;margin-left:12%;}
        #about .right {width:37%;float:right;margin-right:12%;}
        #about .left .img {height:60px;width:54px;float:left;background-position:-708px -344px;margin-right:14px;}
        #about .right .img {height:60px;width:112px;float:left;background-position:-708px -284px;margin-right:14px;}
        #about .link {clear:both;font-size:14px;margin:20px 0;display:block;text-align:left;line-height:10px;}
        #about .link a {color:#2e7fdd;text-decoration:none;}
        #about .link .ext-link {height:12px;width:12px;background-position:-798px -344px;display:block;float:left;margin-right:7px;}

        .animate .parchment-middle {-moz-animation:parchmiddle2 1s ease 1;-webkit-animation:parchmiddle2 1s ease 1;-o-animation:parchmiddle2 1s ease 1;-ms-animation:parchmiddle2 1s ease 1;}

        .game .parchment-middle {background-position: -422px -588px;}
        .game.credits .parchment-middle, .game.death .parchment-middle, .game.about .parchment-middle {width:692px;margin-left:-346px;background-position: -76px -588px;}

            footer {font-size:16px;}
        #resize-check {height:2px;}
        }

        @media screen and (max-width: 1000px) {

        canvas {image-rendering:optimizeSpeed;}
        body {background:-moz-radial-gradient(rgba(0,0,0,0) 40%,rgba(0,0,0,1) 125%), url('../img/1/wood.png') repeat, #000; background-size:auto, 128px;}
        body {background:-webkit-gradient(radial, center center, 200, center center, 600, from(rgba(0,0,0,0)), to(rgba(0,0,0,1))), url('../img/1/wood.png') repeat, #000; background-size:auto, 128px;}
        #logo, #logosparks, .left-ornament, .right-ornament, #character, #character div, .button, .button div, #respawn, #scroll, #instructions, .icon, .avatar, .close, #note, .ribbon .top, .ribbon .bottom, #about .img, .ext-link {background-size:422px auto;}
        #logosparks {width:229px;height:42px;z-index:4;-moz-animation:logo1 .8s steps(6, end) infinite;-webkit-animation:logo1 .8s steps(6, end) infinite;-o-animation:logo1 .8s steps(6, end) infinite;-ms-animation:logo1 .8s steps(6, end) infinite;}
        #parchment, #loadcharacter, #confirmation, #error {width:422px;height:182px;position:absolute;top:50%;left:50%;margin-left:-211px;margin-top:-91px;font-size:10px;text-align:center;z-index:2;}
        #parchment h1, #instructions h1 {margin-top:20px;font-weight:normal;}
        .left-ornament, .right-ornament {height:12px;width:31px;display:inline-block;margin:0 10px;position:relative;top:3px;}
        .left-ornament {background-position:-354px 0;}
        .right-ornament {background-position:-385px 0;}
        #character {height:21px;width:12px;margin:0 auto;background-position:-354px -12px;margin-top:15px;position:relative;}
        #character div {height:21px;width:12px;position:absolute;top:0;left:0;background-position:-366px -12px;opacity:1;}
        #character.disabled div {opacity:0;pointer-events:none;}
        #parchment input {margin-top:10px; padding:0 5px; border:1px dashed #b2af9b; font-size:10px;border-radius:3px;height:21px;}
        .button {height:51px;width:125px;background-position:-229px -102px;margin:10px auto 0 auto;position:relative;}
        .play div {height:51px;width:125px;background-position:-229px 0px;}
        .play.loading div {background-position:-227px -726px;}
        .play.loading img {margin-top:-8px;margin-left:-8px;height:16px;width:16px;}
        .play .play-label {font-size:9px;}
        .stroke, .achievement-name {text-shadow:1px 1px 0 #373737, 1px -1px 0 #373737, 0 1px 0 #373737, 1px 0 0 #373737, -1px 1px 0 #373737, -1px -1px 0 #373737, 0 -1px 0 #373737, 0 1px 0 #373737, -1px 0 0 #373737;}

        #loadcharacter h1, #confirmation h1, #error h1 {margin-top:20px;}
        #playername {margin-top:5px;}
        .loadcharacter .play, .confirmation .delete {margin:5px auto 5px auto;}
        #confirmation p, #error p {font-size:10px;margin-top:20px;line-height:20px;}
        #error p {width:70%;margin:40px auto 0;}
        .button.delete {background-position:-229px -51px;}
        .button.delete:active {background-position:0 -726px;}

                #container {width:600px;margin:0 auto;position:relative !important;top:auto !important;margin-top:0 !important;left:auto !important;margin-left:0 !important;}
                #canvasborder {padding:10px;background:url('../img/1/border.png') no-repeat;}
                #canvas {width:100%;height:300px;}
                #fade {width:580px;height:300px;top:10px;left:10px;}

                #instructions {height:172px;width:417px;background-position:0 -527px;margin-left:-208px;margin-top:-93px;color:#373737;}
                #instructions h1 {font-size:20px;text-align:center;margin-bottom:0;}
        #instructions ul {font-size:10px;margin-top:10px;}
        #instructions ul li {margin:10px 0; clear:left;}
        #instructions li:nth-child(1) span {height:29px;width:15px;background-position:-378px -12px; display:block;float:left;margin: 0 10px 3px 20px;position: relative;top: -13px;}
        #instructions li:nth-child(2) span {height:16px;width:13px;background-position:-393px -12px; display:block;float:left;margin: 0 12px 14px 20px;position: relative;top: -3px;}
        #instructions li:nth-child(3) span {height:21px;width:16px;background-position:-406px -12px; display:block;float:left;margin: 0 9px 0 20px;position: relative;top: -6px;}
        #instructions p {text-align:center;font-family:'GraphicPixel';font-size:10px;clear:left;margin:0;}

        #foreground { cursor: default; }

        #playerimage {height: 32px; width: 32px;}

        .close {height:16px;width:16px;top:-4px;right:-5px;background-position:-354px -126px;}
        .close:hover {background-position:-370px -126px;}
        .close:active {background-position:-386px -126px;}

        .ribbon {width:18px;right:10px;top:4px;}
        .ribbon .top {width:100%;height:6px;background-position:-381px -172px;}
        .ribbon .bottom {width:100%;height:22px;background-position:-381px -185px;}
        .ribbon:hover .top {height:10px;}
        .ribbon:hover .bottom {background-position:-399px -185px;}
        #createcharacter .ribbon {right:10px;top:4px;}
        #loadcharacter .ribbon {right:50px;top:4px;}

        /*Death & Respawn*/
        #death p {font-size:10px;margin-top:45px;}
        #death p em {margin-top:0px;}
                #respawn {width:125px;height:51px;margin:21px auto 0 auto;background-position: 0 -476px;}
                #respawn:active {background-position:-125px -476px;}

                /*Bubbles*/
                #bubbles {width:480px;height:224px;margin-bottom:-224px;position:relative;top:-224px;pointer-events:none;}
                p {font-family:arial, sans-serif;font-size:12px;margin:0;padding:0;line-height:35px;}
            .bubble p {font-family:"GraphicPixel"; font-size:10px;}

            /*GUI Bar*/
            #bar-container {height:17px;top:-1px;background-size:480px;}

                #healthbar {height:13px;background-position:0 -17px;width:102px;top:3px;background-size:480px;z-index:20;}
                #hitpoints {width:0px;height:11px;top:4px;left:11px;z-index:10;position:absolute;}

        #armor, #weapon {width:16px;height:16px;position:absolute;background-size:96px;background-position:-32px;}
        #weapon {left:104px;top:1px;}
        #armor {left:121px;top:1px;}

        #notifications {width:196px;margin-left:-98px;font-size:10px;color:#eee;top:2px;height:15px;}
        #notifications div.top {top:-15px;}
        #notifications span {line-height:15px;height:15px;}

        #playercount {font-size:10px;left:358px;top:4px;width:57px;text-align:center;}
        #population {background-size:480px;right:35px;bottom:22px;width:131px;background-position:-240px -48px;font-size:9px;line-height:12px;}
        #population.visible {height:32px;}
        #instance-population {padding-top:5px;}

        .barbutton {background-size:480px;height:15px;width:14px;}
        #chatbutton {background-position:-102px -17px;top:1px;right:45px;}
        #chatbutton:hover {background-position:-116px -17px;}
        #chatbutton.active {background-position:-130px -17px;}
        #achievementsbutton {background-position:-144px -17px;top:1px;right:30px;}
        #achievementsbutton:hover, #achievementsbutton.blink:hover {background-position:-158px -17px;}
        #achievementsbutton.blink {background-position:-288px -17px;}
        #achievementsbutton.active {background-position:-172px -17px;}
        #helpbutton {background-position:-186px -17px;top:1px;right:15px;}
        #helpbutton:hover {background-position:-200px -17px;}
        #helpbutton.active {background-position:-214px -17px;}
        #mutebutton {background-position:-228px -17px;top:1px;right:0;}
        #mutebutton:hover {background-position:-242px -17px;}
        #mutebutton.active {background-position:-256px -17px;}

                #chatbox {height:16px;width:394px;background-size:480px;background-position:0 -32px;margin-left:-197px;bottom:6px;}
                #chatbox.active {bottom:22px;}
                #chatbox input {font-size:10px;color:#eee;background:none;width:90%;border:0;margin-left:2%;padding:0;}

                /*Credits*/
        #credits, #death, #about {width:422px;height:182px;top:50%;margin-left:-211px;margin-top:-91px;font-size:10px;}
        #credits h1 a {font-size:12px;}
        .parchment-left, .parchment-right, .parchment-middle {background-size:422px;}
        .parchment-left {width:38px;height:182px;background-position:0 -294px;}
        .parchment-right {width:38px;height:182px;background-position:-384px -294px;}
        .parchment-middle {height:182px;background-position:-38px -294px;width:346px;margin-left:-173px;}

        #credits h1, #about h1 {margin-top:12px;font-weight:normal;}
        .game #credits h1, .game #about h1 {margin-top:20px;}
        #credits h1 span.title {max-width:100px;display:inline-block;line-height:13px;margin-top:-30px;position:relative;top:12px;}
        #authors {clear:both;margin-top:36px;}
        #guillaume, #franck {width:47%;line-height:13px;}
        #guillaume {float:left;text-align:right;}
        #franck {float:right;text-align:left;}
        .avatar {height:25px;width:13px;}
        #guillaume .avatar {float:right;background-position:-354px -101px;margin-left:20px;}
        #franck .avatar {float:left;background-position:-367px -101px;margin-right:20px;}
        #seb {margin:90px auto 0 auto;width:64%;color:#373737;font-size:10px;}
        #seb a {color:#373737;text-decoration:none;}
        #seb a:hover {color:#397cd8;}
        #note {float:left;background-position:-401px -112px;height:11px;width:10px;}
        #close-credits {margin:12px auto 0 auto;text-align:center;clear:both;font-size:10px;}
        #sharing {width:202px;}

        /*About*/
        #about h1 span.title {max-width:400px;display:inline-block;line-height:24px;margin-top:-30px;position:relative;margin-bottom:-10px;}
        #close-about {margin:77px auto 0 auto;text-align:center;clear:both;font-size:10px;color:#373737;}
        #about #game-desc {font-size:10px;text-align:center;max-width:70%;margin:10px auto;line-height:14px;}
        #about .left p, #about .right p {font-size:9px;text-align:left;line-height:10px;padding:0;margin-top:-6px;}
        #about .left {width:37%;float:left;margin-left:10%;}
        #about .right {width:37%;float:right;margin-right:12%;}
        #about .img {display:none;}
        #about .link {clear:both;font-size:9px;margin:10px 0;display:block;text-align:left;line-height:5px;}
        #about .link a {color:#2e7fdd;text-decoration:none;}
        #about .link .ext-link {height:6px;width:6px;background-position:-399px -172px;display:block;float:left;margin-right:4px;}

        .animate .parchment-middle {-moz-animation:parchmiddle1 1s ease 1;-webkit-animation:parchmiddle1 1s ease 1;-o-animation:parchmiddle1 1s ease 1;-ms-animation:parchmiddle1 1s ease 1;}

        .game .parchment-middle {background-position: -211px -294px;}
        .game.credits .parchment-middle, .game.death .parchment-middle, .game.about .parchment-middle {width:346px;margin-left:-173px;background-position: -38px -294px;}

        #resize-check {height:1px;}
        }

        @media screen and (max-width: 800px) {

        body {border-top:0px;}
        .intro #container, .game #parchment {display:none;}
        .game.about #parchment {display:block;left:50%;background:url('../img/1/spritesheet.png') no-repeat 0 -527px;height:172px;width:417px;top:50%;margin-left:-208px;margin-top:-98px;position:absolute;}
        .game.about .parchment-middle {top:50%;left:50%;color:#000;position:absolute;}
        #about .right {width:34%;}
        #about #game-desc {margin:8px auto 16px;line-height:12px;}
        #close-about {margin-top:83px;}
        .game #container {display:block;padding:0;}
        #mask, #fade {display:none;}
        .game.death #parchment {display:block;}
        .game .createcharacter #createcharacter, .game .loadcharacter #loadcharacter, .game .confirmation #confirmation, .game .error #error {display:none;}

                .ribbon {display:none;}

        canvas {image-rendering:optimizeSpeed;}
        #moztab {display:none;}
        body.intro {background:url('../img/1/wood.png') repeat, #000; background-size:128px;}
        body.intro {background:url('../img/1/wood.png') repeat, #000; background-size:128px;}
        body {background:#000;}
        #logosparks {-moz-animation:none;-webkit-animation:none;-o-animation:none;-ms-animation:none;display:none;}
                #container {height:258px;width:480px;position:relative;left:auto;top:auto;margin:0 auto;}
                #canvasborder {background:none;padding:0;}

                #parchment, #logosparks, .left-ornament, .right-ornament, #character, #character div, .button, .button div, #respawn, #scroll, #instructions, .icon {background-size:422px auto;}
        #parchment {background:none;}
        #logo {height:84px;width:458px;position:absolute;top:10%;left:50%;margin-left:-229px;z-index:3;background-size:844px;}
        #parchment {width:100%;height:auto;position:absolute;left:0;top:125px;margin-left:0;margin-top:0;font-size:10px;text-align:center;z-index:2;color:#eee;}
        #parchment h1 {margin-top:0px;font-weight:normal;}
        #instructions h1 {margin-top:15px;font-size:14px;}
        .left-ornament, .right-ornament {height:12px;width:31px;display:inline-block;margin:0 10px;position:relative;top:3px;}
        .left-ornament {background-position:-354px 0;}
        .right-ornament {background-position:-385px 0;}
        #character {height:21px;width:12px;margin:0 auto;background-position:-354px -12px;margin-top:15px;position:relative;display:none;}
        #character div {height:21px;width:12px;position:absolute;top:0;left:0;background-position:-366px -12px;opacity:1;}
        #character.disabled div {opacity:0;pointer-events:none;}
        #parchment input {margin-top:10px; padding-bottom:5px; border-bottom:1px dashed #b2af9b; font-size:20px;-moz-animation:none;-webkit-animation:none;-o-animation:none;-ms-animation:none;color:#eee;}
        .button {height:54px;width:204px;background-position:-500px -952px;margin:20px auto 0 auto;position:relative;background-size:844px;}
        .play div {height:54px;width:204px;background-position:-458px -512px; background-size:844px;}
        .play div:active {background-position:0px -1398px;}
        .stroke {text-shadow:1px 1px 0 #373737, 1px -1px 0 #373737, 0 1px 0 #373737, 1px 0 0 #373737, -1px 1px 0 #373737, -1px -1px 0 #373737, 0 -1px 0 #373737, 0 1px 0 #373737, -1px 0 0 #373737;}

                #instructions {height:172px;width:417px;background-position:0 -527px;margin-left:-208px;margin-top:-93px;color:#373737;}
                #instructions h1 {font-size:20px;text-align:center;margin-bottom:0;}
        #instructions ul {font-size:13px;margin-top:15px;}
        #instructions ul li {margin:10px 0; clear:left;}
        #instructions li:nth-child(1) span {height:29px;width:15px;background-position:-378px -12px; display:block;float:left;margin: 0 10px 3px 20px;position: relative;top: -13px;}
        #instructions li:nth-child(2) span {height:16px;width:13px;background-position:-393px -12px; display:block;float:left;margin: 0 12px 14px 20px;position: relative;top: -3px;}
        #instructions li:nth-child(3) span {height:21px;width:16px;background-position:-406px -12px; display:block;float:left;margin: 0 9px 0 20px;position: relative;top: -6px;}
        #instructions p {text-align:center;font-family:'GraphicPixel';font-size:10px;clear:left;margin:0;}

                #foreground { cursor: default; }

                #parchment.animate {-moz-animation:none;-webkit-animation:none;-o-animation:none;-webkit-animation:none;}

                #loadcharacter, #confirmation, #createcharacter, #error {display:none;margin-top:0;margin-left:0;left:0;width:auto;}
                .loadcharacter #loadcharacter, .confirmation #confirmation, .createcharacter #createcharacter, .error #error {display:block;width:100%;}

                #loadcharacter h1, #confirmation h1, #error h1 {font-size:12px;font-weight:normal;}

                #loadcharacter, #confirmation, #error {height:auto;}

            #loadcharacter h1, #confirmation h1, #createcharacter h1, #error h1 {font-size:12px;}
            #createcharacter{padding-bottom:20px;}
                #playername {font-size:20px;margin:10px 0px;}
                #create-new {margin:20px 0px;font-size:16px;}
                .button.delete {background-position:-612px -1398px;}
                .button.delete:active {background-position:-250px -1452px;}
                #confirmation, #error {top:70%;}
                #confirmation p, #error p {margin:10px 0;line-height:12px;font-size:12px;}
                #cancel {font-size:20px;margin:20px 0;}

                #playerimage {display:none;}

                /*GUI Bar*/
                #bar-container {height:34px;top:-2px;background-size:960px;background-position:0 -96px;}

                #healthbar {height:26px;background-position:0 -34px;width:204px;top:6px;background-size:960px;z-index:20;}
                #hitpoints {width:0px;height:22px;top:8px;left:22px;z-index:10;position:absolute;}

        #armor, #weapon {width:32px;height:32px;position:absolute;background-size:192px;background-position:-64px;}
        #weapon {left:208px;top:2px;}
        #armor {left:242px;top:2px;}

        #notifications {display:none;}

        #playercount {font-size:20px;left:270px;top:10px;width:114px;text-align:center;}
        #playercount span {display:none;}
        #playercount span.count {display:inline;}

        .barbutton {background-size:960px;height:30px;width:28px;}
        #chatbutton {background-position:-204px -34px;top:2px;right:45px;}
        #chatbutton:hover {background-position:-232px -34px;}
        #chatbutton.active {background-position:-260px -34px;}
        #achievementsbutton {background-position:-288px -34px;top:2px;right:30px;}
        #achievementsbutton:hover, #achievementsbutton.blink {background-position:-316px -34px;}
        #achievementsbutton.active {background-position:-344px -34px;}
        #helpbutton {background-position:-372px -34px;top:2px;right:15px;}
        #helpbutton:hover {background-position:-400px -34px;}
        #helpbutton.active {background-position:-428px -34px;}
        #mutebutton {background-position:-456px -34px;top:2px;right:0;}
        #mutebutton:hover {background-position:-484px -34px;}
        #mutebutton.active {background-position:-512px -34px;}

                #chatbox {height:32px;width:480px;background-size:960px;background-position:0 -64px;margin-left:-240px;bottom:2px;}
                #chatbox.active {bottom:34px;}
                #chatbox input {font-size:20px;color:#eee;background:none;width:90%;border:0;margin-left:2%;padding:0px 0;}

                /*Credits*/
        .parchment-left, .upscaled .parchment-left, .parchment-middle, .upscaled .parchment-middle, .parchment-right, .upscaled .parchment-right {background:none;}
        .parchment-left, .parchment-right {display:none;}
                .parchment-middle {width:100%;left:0px;margin-left:0px;height:auto;position:relative;}
                #toggle-credits, #credits {display:none;}

                .game.death #parchment {background:url('../img/spritesheet.png') 0 -294px;height:182px;width:422px;position:absolute;top:50%;left:50%;margin-top:-91px;margin-left:-211px;}
        .game.death .parchment-middle {width:100%;position:relative;top:0;left:0;margin-left:0;margin-top:0;}
        .game.death #death {position:relative;top:0;left:0;margin-top:0;margin-left:0;width:100%;}
        .game.death #death p {padding-top:30px;color:#373737;font-size:20px;margin-top:0;width:80%;margin:0 auto;}
        .game.death #death p em {display:block;margin-top:15px;font-style:normal;}

        #instructions, #achievements, #lists, #about {-webkit-transition:none;-moz-transition:none;-o-transition:none;-ms-transition:none;transition:none;}

                .game.death #death {height:172px;width:417px;margin-left:-208px;margin-top:-93px;color:#373737;background:url('../img/1/spritesheet.png') 0 -527px;margin:-10px 0 0 0;}
        #respawn { background-position: -204px -1398px; background-size: 844px auto; width: 204px; height: 54px;}
                #respawn:active {background-position:-408px -1398px;}

        footer {display:none;}
        /* הסתרת לוגו על מסך קטן בגיים */
        .game #logo { display: none !important; }
        #bubbles {overflow:hidden;}
        }

        @media screen and (max-width: 800px) and (orientation: portrait) {
        #portrait {display:block;height:300px;width:300px;position:absolute;top:55%; left:50%; margin:-150px 0 0 -150px;}
        #parchment {display:none;}
        #container, .game #container {display:none;}

        #logo {height:84px;width:458px;position:absolute;top:10%;left:50%;margin-left:-229px;z-index:3;background-size:844px;}
        #portrait p {color:#eee;font-family:'GraphicPixel', sans-serif;font-size:20px;text-align:center;}

        #tilt {height:120px;width:132px;background-position:-710px -82px;background-size:844px;margin:25px auto 0 auto;}
    }

    @media screen and (max-width: 640px) and (orientation: portrait) {
        #portrait {display:block;height:300px;width:300px;position:absolute;top:70%; left:50%; margin:-150px 0 0 -150px;}

        #logo {height:42px;width:229px;position:absolute;top:10%;left:50%;margin-left:-114px;z-index:3;background-size:422px;}
    }

/* Tablet mode */

    .tablet .animate .parchment-left, .tablet .animate .parchment-right, .tablet .animate .parchment-middle {-webkit-animation:none;-moz-animation:none;-o-animation:none;-ms-animation:none;}
    .tablet #instructions, .tablet #achievements, .tablet #lists {-webkit-transition:none;-moz-transition:none;-o-transition:none;-ms-transition:none;transition:none;}
    .tablet #achievements li.unlocked .achievement-sharing {display:block;}
    .tablet #coinsparks {display:none; -moz-animation:none;}

    .tablet #logo, .tablet #parchment, .tablet #container {-moz-transition:none;}
    .tablet #achievement-notification .name, .tablet #achievement-notification .title, .tablet #achievement-notification .coin, .tablet #achievement-notification {-moz-transition:none;}

/* Workarounds for chrome windows bugs */

    .windows #parchment, .windows #parchment input, .windows #notifications, .windows #instructions, .windows #achievements, .windows #achievement-notification, 
    .windows #playercount, .windows #credits, .windows #loadcharacter, .windows #confirmation, .windows #death, .windows #error, .windows #about, 
    .windows #parchment p, .windows #portrait p, .windows .alert, .windows footer, .windows .bubble p, .windows #population {font-family:'AdvoCut';}

/* Workarounds for opera's lack of pointer-events support */

    .opera.intro #bubbles, .opera.intro #canvas, .opera.intro #container { z-index: -30000;}
    .opera .credits #credits, .opera .createcharacter #createcharacter, .opera .loadcharacter #loadcharacter, .opera .confirmation #confirmation, .opera .death #death, 
    .opera .error #error, .opera .about #about { z-index: 30000; }
    .opera #instructions, .opera #achievements { z-index: -30000;}
    .opera #achievements.active, .opera #instructions.active { z-index: 30000;}
    .opera #coinsparks {display:none;}
    .opera #death, .opera #about, .opera #credits, .opera #error, .opera #confirmation, .opera #loadcharacter { z-index: -30000; }
#project-subtitle { font-size: 14px; margin: 8px 0; }
.project-links a { margin-right: 10px; font-size: 12px; }
#market-score-box { display:none; text-align:center; color:#fce045; font-family:'GraphicPixel',sans-serif; font-size:13px; letter-spacing:1px; padding:6px 16px; background:rgba(0,0,0,0.45); border:1px solid rgba(200,144,10,0.4); border-radius:4px; margin:6px auto 0 auto; width:fit-content; text-shadow:0 1px 3px rgba(0,0,0,0.8); }
.game #market-score-box { display:block; }
.market-score-label { opacity:0.75; margin-right:4px; }
#leaderboard { display:none; position:absolute; left:50%; top:50%; margin-left:-208px; margin-top:-180px; width:416px; z-index:1000; }
#leaderboard.active { display:block !important; opacity:1; -moz-transition:0.5s opacity linear 0.5s; -webkit-transition:0.5s opacity linear 0.5s; -o-transition:0.5s opacity linear 0.5s; -ms-transition:0.5s opacity linear 0.5s; transition:0.5s opacity linear 0.5s; pointer-events:auto; }
.intro #leaderboard { opacity:1; pointer-events:auto; }
.intro #leaderboard.active { display:block !important; opacity:1; pointer-events:auto; z-index:1000; }
#leaderboard.parchment-modal { height:360px; }
#leaderboard.parchment-modal .parchment-left { left:0; }
#leaderboard.parchment-modal .parchment-right { right:0; }
#leaderboard.parchment-modal .parchment-middle { width:320px; margin-left:-160px; }
#leaderboard-list { text-align:left; max-height:280px; overflow-y:auto; list-style:decimal; margin:10px 0; padding-left:20px; }
#leaderboard-list li { margin:6px 0; font-size:13px; line-height:1.4; word-break: break-word; }
#leaderboard-list li strong { color:#fce045; font-weight:bold; }
#leaderboard-list li .rank { color:#999; margin-right:6px; }
#project-about-panel { margin: 10px 0; }
#project-logo { width: 40px; height: 40px; image-rendering: pixelated; }
#project-social-footer { margin-bottom: 6px; }

#project-social-footer a { margin:0 6px; font-size:20px; text-decoration:none; }
#about-twitter, #about-website { transition: transform 0.2s; }
#about-twitter:hover, #about-website:hover { transform: scale(1.3); }
#token-twitter, #token-website { transition: transform 0.2s; }
#token-twitter:hover, #token-website:hover { transform: scale(1.3); }
#link-dexscreener, #link-pumpfun, #link-jupiter { transition: transform 0.2s; display: inline-block; }
#link-dexscreener:hover, #link-pumpfun:hover, #link-jupiter:hover { transform: scale(1.3); }
#token-dexscreener, #token-pumpfun, #token-jupiter { transition: transform 0.2s; display: inline-block; }
#token-dexscreener:hover, #token-pumpfun:hover, #token-jupiter:hover { transform: scale(1.3); }
#link-dexscreener img, #link-pumpfun img, #link-jupiter img,
#token-dexscreener img, #token-pumpfun img, #token-jupiter img,
#about-twitter img,
#token-twitter img { width: 40px !important; height: 40px !important; object-fit: contain !important; }
#game-logo { display: none !important; pointer-events: none; visibility: hidden !important; opacity: 0 !important; }
.game #game-logo { display: none !important; pointer-events: none; visibility: hidden !important; opacity: 0 !important; }
#game-logo img { width: 260px !important; max-width: 260px !important; height: auto !important; image-rendering: pixelated; }

/* ── Force scale=2 game layout on large screens ── */
@media screen and (min-width: 1501px) {
    /* Container */
    .game #container { width: 980px !important; max-width: 100% !important; }
    .game #canvasborder { padding: 10px !important; background-image: url('../img/2/border.png') !important; }
    .game #canvas { height: 448px !important; }
    .game #fade { width: 960px !important; height: 448px !important; top: 10px !important; left: 10px !important; }
    .game #bubbles { width: 960px !important; height: 448px !important; margin-bottom: -448px !important; top: -448px !important; }
    /* Health bar */
    .game #bar-container { width: 960px !important; max-width: 960px !important; height: 34px !important; top: -2px !important; background-size: 960px !important; background-repeat: no-repeat !important; overflow: hidden !important; margin-left: auto !important; margin-right: auto !important; }
    .game #healthbar { height: 26px !important; background-position: 0 -34px !important; width: 204px !important; top: 6px !important; background-size: 960px !important; }
    .game #hitpoints { height: 22px !important; top: 8px !important; left: 22px !important; }
    .game #armor, .game #weapon { width: 32px !important; height: 32px !important; background-size: 192px !important; background-position: -64px !important; }
    .game #weapon { left: 208px !important; top: 2px !important; }
    .game #armor { left: 242px !important; top: 2px !important; }
    /* Notifications */
    .game #notifications { width: 392px !important; margin-left: -196px !important; font-size: 16px !important; top: 2px !important; height: 30px !important; display: block !important; }
    .game #notifications div.top { top: -30px !important; }
    .game #notifications span { line-height: 30px !important; height: 30px !important; }
    /* Player count */
    .game #playercount { font-size: 16px !important; left: 717px !important; top: 10px !important; width: 114px !important; text-align: center !important; }
    /* Population */
    .game #population { background-size: 960px !important; right: 70px !important; bottom: 44px !important; width: 262px !important; background-position: -480px -96px !important; font-size: 14px !important; line-height: 20px !important; }
    .game #population.visible { height: 64px !important; }
    .game #instance-population { padding-top: 12px !important; }
    /* Bar buttons */
    .game .barbutton { background-size: 960px !important; height: 30px !important; width: 28px !important; }
    .game #chatbutton { background-position: -204px -34px !important; top: 2px !important; right: 90px !important; }
    .game #chatbutton:hover { background-position: -232px -34px !important; }
    .game #chatbutton.active { background-position: -260px -34px !important; }
    .game #achievementsbutton { background-position: -288px -34px !important; top: 2px !important; right: 60px !important; }
    .game #achievementsbutton:hover, .game #achievementsbutton.blink:hover { background-position: -316px -34px !important; }
    .game #achievementsbutton.blink { background-position: -576px -34px !important; }
    .game #achievementsbutton.active { background-position: -344px -34px !important; }
    .game #helpbutton { background-position: -372px -34px !important; top: 2px !important; right: 30px !important; }
    .game #helpbutton:hover { background-position: -400px -34px !important; }
    .game #helpbutton.active { background-position: -428px -34px !important; }
    .game #mutebutton { background-position: -456px -34px !important; top: 2px !important; right: 0 !important; }
    .game #mutebutton:hover { background-position: -484px -34px !important; }
    .game #mutebutton.active { background-position: -512px -34px !important; }
    /* Chatbox */
    .game #chatbox { height: 32px !important; width: 788px !important; background-size: 960px !important; background-position: 0 -64px !important; margin-left: -394px !important; bottom: 12px !important; }
    .game #chatbox.active { bottom: 44px !important; }
    .game #chatbox input { font-size: 20px !important; padding: 7px 0 !important; }
    /* Spritesheet elements: force scale=2 background-size */
    .game #instructions, .game .icon, .game .avatar, .game .close, .game #note, .game .ribbon .top, .game .ribbon .bottom, .game #about .img, .game .ext-link { background-size: 844px auto !important; }
    /* Parchment container: force scale=2 dimensions for about/credits/death overlays in game mode */
    .game.credits #parchment, .game.death #parchment, .game.about #parchment {
        position: fixed !important;
        width: 844px !important;
        height: 364px !important;
        top: 50% !important;
        left: 50% !important;
        margin-left: -422px !important;
        margin-top: -182px !important;
    }
    /* Modals & parchments */
    .game #credits, .game #death, .game #about { width: 844px !important; height: 364px !important; margin-left: -422px !important; margin-top: -182px !important; font-size: 20px !important; }
    .game .parchment-left, .game .parchment-right, .game .parchment-middle { background-size: 844px !important; }
    .game .parchment-left { width: 76px !important; height: 364px !important; background-position: 0 -588px !important; }
    .game .parchment-right { width: 76px !important; height: 364px !important; background-position: -768px -588px !important; }
    .game .parchment-middle { height: 364px !important; background-position: -422px -588px !important; width: 692px !important; margin-left: -346px !important; }
    .game.credits .parchment-middle, .game.death .parchment-middle, .game.about .parchment-middle { width: 692px !important; margin-left: -346px !important; background-position: -76px -588px !important; }
    /* Instructions panel */
    .game #instructions { height: 344px !important; width: 834px !important; background-position: 0 -1054px !important; margin-left: -416px !important; margin-top: -186px !important; }
    .game #instructions h1 { font-size: 30px !important; margin: 40px 0 !important; }
    .game #instructions ul { font-size: 20px !important; margin-top: 40px !important; }
    .game #instructions ul li { margin: 20px 0 !important; }
    .game #instructions p { font-size: 20px !important; margin-top: 20px !important; }
    /* Instruction icons: force scale-2 sprite positions (scale-3 positions are out-of-range for the 844px sheet) */
    .game #instructions li:nth-child(1) span { height: 58px !important; width: 30px !important; background-position: -756px -24px !important; margin: 0 20px 6px 40px !important; top: -26px !important; }
    .game #instructions li:nth-child(2) span { height: 32px !important; width: 26px !important; background-position: -786px -24px !important; margin: 0 24px 28px 40px !important; top: -6px !important; }
    .game #instructions li:nth-child(3) span { height: 42px !important; width: 32px !important; background-position: -812px -24px !important; margin: 0 18px 0 40px !important; top: -12px !important; }
    /* Achievements panel: force scale=2 dimensions (game always uses scale=2 regardless of screen size) */
    .game #achievements { height: 392px !important; width: 832px !important; margin-left: -416px !important; margin-top: -216px !important; font-size: 20px !important; transform: none !important; }
    .game #achievements, .game #achievements li, .game #achievements .coin, .game #achievement-notification, .game #achievement-notification .coin, .game #coinsparks, .game .achievement-sharing a, .game #previous, .game #next { background-size: 832px !important; }
    .game #achievements-wrapper { height: 258px !important; width: 744px !important; margin: 40px 0 20px 40px !important; }
    .game #achievements ul { margin-left: 40px !important; }
    .game #achievements nav { height: 44px !important; width: 134px !important; }
    .game #previous, .game #next { height: 44px !important; width: 68px !important; }
    .game .page1 #previous { background-position: 0px -564px !important; }
    .game .page5 #next { background-position: -66px -564px !important; }
    .game #previous { background-position: -134px -564px !important; }
    .game #previous:active { background-position: -268px -564px !important; }
    .game #next { margin-left: -10px !important; background-position: -200px -564px !important; }
    .game #next:active { background-position: -334px -564px !important; }
    .game #achievements li { height: 52px !important; width: 744px !important; background-position: 0 -392px !important; margin: 10px 0 !important; }
    .game #achievements li .coin { margin-right: 30px !important; }
    .game #achievements li span { padding-top: 18px !important; }
    .game .coin { width: 48px !important; height: 52px !important; }
    .game .achievement1 .coin { background-position: 0 -444px !important; }
    .game .achievement2 .coin { background-position: -48px -444px !important; }
    .game .achievement3 .coin { background-position: -96px -444px !important; }
    .game .achievement4 .coin { background-position: -144px -444px !important; }
    .game .achievement5 .coin { background-position: -192px -444px !important; }
    .game .achievement6 .coin { background-position: -240px -444px !important; }
    .game .achievement7 .coin { background-position: -288px -444px !important; }
    .game .achievement8 .coin { background-position: -336px -444px !important; }
    .game .achievement9 .coin { background-position: -384px -444px !important; }
    .game .achievement10 .coin { background-position: -432px -444px !important; }
    .game .achievement11 .coin { background-position: -480px -444px !important; }
    .game .achievement12 .coin { background-position: -528px -444px !important; }
    .game .achievement13 .coin { background-position: -576px -444px !important; }
    .game .achievement14 .coin { background-position: -624px -444px !important; }
    .game .achievement15 .coin { background-position: -672px -444px !important; }
    .game .achievement16 .coin { background-position: -720px -444px !important; }
    .game .achievement17 .coin { background-position: -768px -444px !important; }
    .game .achievement18 .coin { background-position: -432px -548px !important; }
    .game .achievement19 .coin { background-position: -480px -548px !important; }
    .game .achievement20 .coin { background-position: -528px -548px !important; }
    .game #achievements-count { margin: 12px 48px 0 0 !important; }
    /* Achievement sharing icons: force scale-2 positions and dimensions.
       The ul has margin-left:40px inside the 744px wrapper (overflow:hidden),
       so the li's right 40px is clipped. We compensate with right:56px (16px visible gap + 40px ul margin offset). */
    .game .achievement-sharing { right: 56px !important; top: 16px !important; }
    .game .achievement-sharing .twitter { height: 22px !important; width: 32px !important; background-position: -754px -392px !important; margin-left: 10px !important; }
    .game .achievement-sharing .twitter:hover { background-position: -754px -414px !important; }
    .game .achievement-sharing .facebook { height: 22px !important; width: 10px !important; background-position: -744px -392px !important; }
    .game .achievement-sharing .facebook:hover { background-position: -744px -414px !important; }
    /* Coinsparks: force scale-2 dimensions and animation */
    .game #achievement-notification.active #coinsparks { height: 52px !important; width: 48px !important; -moz-animation: coinsparks2 0.8s steps(6, end) 7 !important; -webkit-animation: coinsparks2 0.8s steps(6, end) 7 !important; animation: coinsparks2 0.8s steps(6, end) 7 !important; }
    .game #lists { width: 4000px !important; }
    .game #achievements.page1 #lists { left: 0 !important; }
    .game #achievements.page2 #lists { left: -784px !important; }
    .game #achievements.page3 #lists { left: -1568px !important; }
    .game #achievements.page4 #lists { left: -2352px !important; }
    .game #achievements.page5 #lists { left: -3136px !important; }
    /* Leaderboard parchment: override the general .game .parchment-* rules to preserve scale-2 book layout */
    .game #leaderboard .parchment-left, .game #leaderboard .parchment-right, .game #leaderboard .parchment-middle { background-size: 844px !important; }
    .game #leaderboard .parchment-left { width: 76px !important; height: 364px !important; background-position: 0 -588px !important; left: 0 !important; right: auto !important; }
    .game #leaderboard .parchment-right { width: 76px !important; height: 364px !important; background-position: -768px -588px !important; right: 0 !important; left: auto !important; }
    .game #leaderboard .parchment-middle { width: 320px !important; height: 364px !important; margin-left: -160px !important; background-position: -76px -588px !important; }
    .game #leaderboard { height: 360px !important; }
    /* Close button */
    .game .close { height: 32px !important; width: 32px !important; top: -8px !important; right: -10px !important; background-position: -708px -252px !important; }
    /* Ribbons */
    .game .ribbon { width: 36px !important; right: 20px !important; top: 8px !important; }
    .game .ribbon .top { height: 12px !important; background-position: -762px -344px !important; }
    .game .ribbon .bottom { height: 44px !important; background-position: -762px -370px !important; }
    /* Market score: standalone below game frame on small screens */
    #market-score-box { font-size: 11px !important; }
    /* Achievement notification: force scale=2 dimensions */
    .game #achievement-notification { width: 432px !important; bottom: 44px !important; margin-left: -216px !important; background-position: 0 -496px !important; }
    .game #achievement-notification.active { height: 68px !important; }
    .game #achievement-notification .coin { top: -40px !important; margin-left: -24px !important; }
    .game #achievement-notification .title { font-size: 14px !important; margin: 18px 0 6px 0 !important; }
    .game #achievement-notification .name { font-size: 20px !important; margin: 6px 0 !important; }
    /* Leaderboard button */
    .game #leaderboardbutton { top: 2px !important; left: 960px !important; font-size: 11px !important; line-height: 30px !important; }
    /* Canvasborder: ensure correct positioning context */
    .game #canvasborder { position: relative !important; overflow: hidden !important; }
    /* Container: ensure position for absolute children */
    .game #container { position: relative !important; }
}
