.new-year-memory{--ny-gold:#ebc77d;--ny-cream:#fff0cc;--ny-dim:#c4a392;position:relative;isolation:isolate;width:min(100%,560px,calc(100vh - 255px));min-width:min(100%,280px);margin:auto;box-sizing:border-box;padding:27px 30px 20px;overflow:hidden;border:1px solid #ce9e54;border-radius:28px;background:radial-gradient(ellipse at 50% 0,rgba(182,78,65,0.251),transparent 55%),radial-gradient(ellipse at 110% 100%,rgba(71,51,95,0.4392),transparent 65%),linear-gradient(155deg,#521c2d,#2d172a 65%,#291d31);color:var(--ny-cream);box-shadow:0 24px 70px rgba(64,32,43,0.149),inset 0 0 0 5px rgba(220,168,90,0.0431),inset 0 0 0 6px rgba(233,186,98,0.149);font-family:"Microsoft YaHei","PingFang SC",sans-serif}
.new-year-memory *{box-sizing:border-box}.new-year-memory button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.new-year-memory button:focus-visible{outline:3px solid #aff4ff;outline-offset:4px}.ny-memory-header{display:flex;align-items:center;justify-content:space-between;padding:0 1px 21px}.ny-memory-edition{color:#d7b17c;font-size:10px;letter-spacing:.2em}.ny-memory-header h2{margin:7px 0 5px;color:#ffe3a3;font:700 38px/1.15 KaiTi,STKaiti,serif;letter-spacing:.14em;text-shadow:0 2px 0 #703826}.ny-memory-header p{margin:0;font-size:11px;letter-spacing:.08em;color:#c4a392}.ny-memory-sound{display:grid;place-items:center;width:35px;height:35px;border:1px solid rgba(221,179,108,0.3333);border-radius:50%;color:#e8c78d;background:rgba(231,187,99,0.0627)}.ny-memory-sound svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5}.ny-memory-sound.muted{opacity:.45}.ny-memory-corner{position:absolute;top:13px;width:24px;height:24px;pointer-events:none;border-top:1px solid rgba(219,180,109,0.451)}.ny-memory-corner:before{content:"";position:absolute;top:5px;width:15px;height:15px;border-top:1px solid rgba(219,180,109,0.451)}.ny-memory-corner.top-left{left:13px;border-left:1px solid rgba(219,180,109,0.451)}.ny-memory-corner.top-left:before{left:5px;border-left:1px solid rgba(219,180,109,0.451)}.ny-memory-corner.top-right{right:13px;border-right:1px solid rgba(219,180,109,0.451)}.ny-memory-corner.top-right:before{right:5px;border-right:1px solid rgba(219,180,109,0.451)}
.ny-memory-stats{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:center;padding:14px 0 15px;border-top:1px solid rgba(199,161,106,0.1725)}.ny-memory-stats>div>span{display:block;font-size:10px;letter-spacing:.08em;color:#c9a99a;margin-bottom:7px}.ny-memory-clock strong{font:400 29px/1 Georgia,serif;font-variant-numeric:tabular-nums;letter-spacing:.025em;color:#ffe6ab}.ny-memory-clock strong span{font:10px sans-serif;margin-left:5px;color:#c9a99a}.ny-memory-chances{text-align:center;border-left:1px solid rgba(214,168,91,0.149);border-right:1px solid rgba(214,168,91,0.149)}.ny-memory-chances>div{display:flex;justify-content:center;gap:5px;padding:6px 0}.ny-memory-chances i{display:block;width:12px;height:15px;border:1px solid #f3d595;border-radius:5px 5px 3px 3px;background:linear-gradient(145deg,#ffe9af,#d39f50);box-shadow:0 0 7px rgba(235,195,112,0.1412);transition:filter .3s,opacity .3s,transform .3s}.ny-memory-chances i.used{filter:grayscale(1);opacity:.22;transform:scale(.8)}.ny-memory-reward{text-align:right}.ny-memory-reward strong{font:400 27px/1 Georgia,serif;color:#f8d28b}.ny-memory-reward small{font:13px Georgia,serif;color:#b99281}.ny-memory-time-track{height:3px;background:rgba(224,179,114,0.0745);border-radius:4px;overflow:hidden}.ny-memory-time-track i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#ae7758,#f5d68e);transform-origin:left;transition:transform .2s linear}.ny-memory-instruction{display:flex;justify-content:center;align-items:center;min-height:45px;margin:2px 0 7px;font-size:11px;line-height:1.7;letter-spacing:.025em;color:#dfbda1;text-align:center}.ny-memory-instruction strong{font-weight:400;color:#a99188;margin-left:4px}.ny-memory-warning .ny-memory-chances i:not(.used){background:#ffad85;border-color:#ffc9a2}
.ny-memory-board-wrap{position:relative}.ny-memory-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.ny-memory-tile{position:relative;display:block;min-width:0;padding:0;border:none;border-radius:12px;background:transparent;perspective:600px;isolation:isolate;touch-action:manipulation}.ny-memory-tile:before{content:"";display:block;padding-top:100%}.ny-memory-tile:disabled{cursor:default;opacity:1}.ny-memory-tile-inner{position:absolute;top:0;right:0;bottom:0;left:0;display:block;transform-style:preserve-3d;transition:transform .34s cubic-bezier(.2,.7,.25,1)}.ny-memory-tile.revealed .ny-memory-tile-inner{transform:rotateY(180deg)}.ny-memory-back,.ny-memory-front{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;border:1px solid rgba(194,155,101,0.302);border-radius:12px;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}.ny-memory-back{background:radial-gradient(ellipse at 28% 12%,#774142,#4c2934 72%);box-shadow:inset 0 0 0 4px rgba(233,186,85,0.0627),inset 0 0 0 5px rgba(200,157,94,0.1255),0 4px 8px rgba(30,10,20,0.1137);color:#ad8359}.ny-memory-back:after{content:"";position:absolute;top:7px;right:7px;bottom:7px;left:7px;border:1px solid rgba(188,148,97,0.0824);border-radius:7px}.ny-memory-back svg{width:52%;height:52%;fill:none;stroke:currentColor;stroke-width:1;opacity:.75}.ny-memory-front{transform:rotateY(180deg);background:radial-gradient(ellipse at 30% 0%,var(--ny-face-glow),transparent 100%),var(--ny-face-bg);border-color:var(--ny-face-stroke);box-shadow:inset 0 0 0 4px rgba(255,248,213,0.0392),0 0 0 1px rgba(255,234,199,0.0314)}.ny-memory-front svg{width:68%;height:68%;fill:var(--ny-symbol);stroke:var(--ny-symbol-edge);stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 1px rgba(21,5,15,0.3608))}.ny-memory-front .ny-memory-line{fill:none;stroke:var(--ny-highlight);stroke-width:1.4}.ny-memory-front .ny-memory-shine{fill:var(--ny-highlight)}.ny-memory-front .ny-memory-eye{fill:#16483f;stroke:none}.ny-memory-tile.gold,.ny-memory-group.gold{--ny-face-bg:#693e24;--ny-face-glow:rgba(183,133,64,0.3333);--ny-face-stroke:#dcb56d;--ny-symbol:#edbc5f;--ny-symbol-edge:#ffe5a4;--ny-highlight:#fff0b8}.ny-memory-tile.coral,.ny-memory-group.coral{--ny-face-bg:#813e3c;--ny-face-glow:rgba(255,151,108,0.2314);--ny-face-stroke:#d68b78;--ny-symbol:#ea967b;--ny-symbol-edge:#ffd7ae;--ny-highlight:#ffe2b8}.ny-memory-tile.jade,.ny-memory-group.jade{--ny-face-bg:#1f545a;--ny-face-glow:rgba(135,196,166,0.3255);--ny-face-stroke:#72bab3;--ny-symbol:#a3d9cc;--ny-symbol-edge:#d4f7d5;--ny-highlight:#e3ffdf}.ny-memory-tile.violet,.ny-memory-group.violet{--ny-face-bg:#523b68;--ny-face-glow:rgba(199,163,205,0.2706);--ny-face-stroke:#b392ca;--ny-symbol:#c9a3d1;--ny-symbol-edge:#f6d2e4;--ny-highlight:#ffdeec}.ny-memory-tile.green,.ny-memory-group.green{--ny-face-bg:#395440;--ny-face-glow:rgba(173,203,140,0.2392);--ny-face-stroke:#93b488;--ny-symbol:#afca8d;--ny-symbol-edge:#e6eab5;--ny-highlight:#e5f5c8}.ny-memory-position{position:absolute;left:8px;bottom:6px;font:8px Georgia,serif;color:rgba(211,173,119,0.4392);pointer-events:none;z-index:1;transition:opacity .2s}.ny-memory-tile.revealed .ny-memory-position{opacity:0}.ny-memory-tile.selected{z-index:2}.ny-memory-tile.selected .ny-memory-front{border-color:#ffe6a6;box-shadow:0 0 0 2px rgba(245,212,142,0.2667),0 0 20px rgba(239,204,92,0.1686),inset 0 0 13px rgba(255,221,127,0.0941)}.ny-memory-tile.wrong{animation:ny-memory-shake .45s ease-in-out}.ny-memory-tile.wrong .ny-memory-front{border-color:#f88d83;box-shadow:0 0 0 2px rgba(238,119,98,0.3333)}.ny-memory-tile.cleared .ny-memory-tile-inner{opacity:0;transform:rotateY(180deg) scale(.75);transition:transform .55s ease,opacity .55s ease .15s}.ny-memory-tile.cleared{border:1px dashed rgba(208,170,108,0.1922);animation:ny-memory-clear .65s ease}.ny-memory-cleared-mark{position:absolute;top:0;right:0;bottom:0;left:0;display:none;color:rgba(209,174,111,0.451);font:22px/1 Georgia,serif}.ny-memory-tile.cleared .ny-memory-cleared-mark{display:grid;place-items:center}.ny-memory-tile.cleared .ny-memory-position{opacity:0}.ny-memory-links{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:3}.ny-memory-links polyline{fill:none;stroke:#f6db95;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px #f7d880);opacity:.7}.ny-memory-links polyline.wrong{stroke:#f99d91;filter:none}.ny-memory-links polyline.matched{stroke-width:3;animation:ny-memory-path .68s ease-out both}.ny-memory-burst{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:visible;z-index:4;display:none}.ny-memory-burst.active{display:block}.ny-memory-burst i{position:absolute;left:50%;top:50%;display:block;width:5px;height:10px;border-radius:1px;background:#ffe4a1;opacity:0}.ny-memory-burst.active i{animation:ny-memory-spark .7s calc(var(--petal)*.008s) ease-out both;transform:rotate(var(--tilt))}
.ny-memory-groups{display:flex;justify-content:center;gap:11px;padding:18px 0 10px}.ny-memory-group{position:relative;display:block;width:32px;height:32px;border:1px solid rgba(193,153,106,0.1451);border-radius:50%;padding:5px;opacity:.4;transition:opacity .3s,background .3s,border-color .3s}.ny-memory-group svg{display:block;width:100%;height:100%;fill:var(--ny-symbol);stroke:var(--ny-symbol-edge);stroke-width:1.2}.ny-memory-group .ny-memory-line{fill:none;stroke:var(--ny-highlight)}.ny-memory-group i{display:none;position:absolute;right:-3px;bottom:-2px;border-radius:50%;height:12px;width:12px;background:#f2d28c;color:#5b322c;font:700 9px/12px sans-serif;text-align:center}.ny-memory-group.done{opacity:1;border-color:rgba(226,191,122,0.5216);background:rgba(223,181,103,0.0902)}.ny-memory-group.done i{display:block}.ny-memory-footer{display:flex;justify-content:space-between;gap:8px;margin-top:4px;padding-top:12px;border-top:1px solid rgba(198,160,106,0.1294);color:#ad8b7e;font-size:9px;line-height:1.6;letter-spacing:.04em}.ny-memory-curtain{position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:28px;background:linear-gradient(rgba(56,27,42,0.4392),rgba(36,23,43,0.9608));backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}.ny-memory-curtain[hidden]{display:none}.ny-memory-intro,.ny-memory-result{width:100%;text-align:center}.ny-memory-small-seal{display:inline-block;padding:5px 11px;border:1px solid rgba(203,166,106,0.3608);color:#dbb77e;font:11px KaiTi,serif;letter-spacing:.25em}.ny-memory-intro h3,.ny-memory-result h3{margin:20px 0 14px;font:700 28px/1.4 KaiTi,STKaiti,serif;color:#ffe5ac;letter-spacing:.05em}.ny-memory-intro p,.ny-memory-result p{color:#c5a399;font-size:12px;line-height:2;margin:10px 0}.ny-memory-intro-rules{display:flex;justify-content:center;gap:14px;margin:24px 0 21px;font-size:10px;color:#dfbf94}.ny-memory-intro-rules span+span{position:relative}.ny-memory-intro-rules span+span:before{content:"·";position:absolute;left:-9px;color:#9b795f}.ny-memory-begin,.ny-memory-retry{display:block;margin:20px auto 15px;padding:13px 23px;border:1px solid #f5d69a;border-radius:9px;background:linear-gradient(145deg,#f9dd9d,#dab272);color:#4e2930;font-size:12px;font-weight:700;box-shadow:0 4px 20px rgba(234,196,108,0.098)}.ny-memory-intro small,.ny-memory-result small{display:block;color:#907b7d;font-size:9px;line-height:1.7}.ny-memory-curtain.result{background:radial-gradient(ellipse at 50% 30%,rgba(137,82,66,0.5686),transparent 70%),rgba(43,25,45,0.9294)}.ny-memory-result-medal{display:grid;place-items:center;width:80px;height:80px;margin:22px auto 0;border:1px solid rgba(237,203,129,0.4392);outline:1px solid rgba(237,203,129,0.1804);outline-offset:7px;border-radius:50%;background:radial-gradient(ellipse at 30% 20%,rgba(232,185,125,0.2196),rgba(195,147,84,0.0824));color:#f9d88e;font:44px KaiTi,STKaiti,serif;box-shadow:0 0 45px rgba(237,193,117,0.0471)}.ny-memory-result h3{font-size:25px}.ny-memory-result-reward{margin:14px 0}.ny-memory-result-reward strong{display:block;font:400 65px/1.1 Georgia,serif;color:#ffe4a1;text-shadow:0 2px 10px rgba(239,191,91,0.1098)}.ny-memory-result-reward span{font-size:10px;letter-spacing:.16em;color:#b99885}.ny-memory-result .ny-memory-result-note{font-size:10px;line-height:1.8;padding:0 15px}.ny-memory-result p strong{color:#ebd0a0;font-weight:400}
@keyframes ny-memory-shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-3px)}40%,80%{transform:translateX(3px)}}
@keyframes ny-memory-clear{0%{filter:brightness(1)}35%{filter:brightness(1.65)}100%{filter:brightness(1)}}
@keyframes ny-memory-path{0%{opacity:.8}50%{opacity:1}100%{opacity:0}}
@keyframes ny-memory-spark{0%{opacity:0;transform:translate(0,0) rotate(var(--tilt)) scale(1)}20%{opacity:.8}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--tilt)) scale(.3)}}
@media(max-width:600px){.new-year-memory{padding:24px 20px 16px;border-radius:23px}.ny-memory-header{padding-bottom:16px}.ny-memory-header h2{font-size:34px}.ny-memory-stats{padding:12px 0}.ny-memory-stats>div>span{font-size:9px}.ny-memory-clock strong{font-size:25px}.ny-memory-chances>div{gap:4px}.ny-memory-chances i{width:10px;height:13px}.ny-memory-reward strong{font-size:25px}.ny-memory-board{gap:7px}.ny-memory-back,.ny-memory-front,.ny-memory-tile{border-radius:9px}.ny-memory-instruction{font-size:10px;min-height:40px}.ny-memory-position{font-size:7px;left:7px;bottom:5px}.ny-memory-groups{padding-top:15px;gap:9px}.ny-memory-group{width:29px;height:29px}.ny-memory-footer{font-size:8px}.ny-memory-intro h3{font-size:25px}.ny-memory-intro-rules{gap:12px;font-size:9px}.ny-memory-curtain{padding:22px}.ny-memory-intro p{font-size:11px}.ny-memory-header p{font-size:10px}}
@media(max-width:350px){.new-year-memory{padding:22px 15px 14px}.ny-memory-board{gap:6px}.ny-memory-header h2{font-size:30px}.ny-memory-chances i{width:8px}.ny-memory-instruction strong{display:none}.ny-memory-footer{font-size:7px}}
@media(prefers-reduced-motion:reduce){.new-year-memory *{animation:none!important;transition:none!important}.ny-memory-burst{display:none!important}}

.new-year-memory[data-phase="memorize"] .ny-memory-tile-inner{transition:none}

@media(max-height:700px){.new-year-memory{padding-top:20px;padding-bottom:14px}.ny-memory-header{padding-bottom:10px}.ny-memory-header h2{font-size:29px;margin:4px 0}.ny-memory-header p{display:none}.ny-memory-edition{font-size:9px}.ny-memory-stats{padding:9px 0 10px}.ny-memory-clock strong,.ny-memory-reward strong{font-size:23px}.ny-memory-instruction{min-height:32px;margin:2px 0 5px;font-size:9px}.ny-memory-groups{padding:10px 0 7px}.ny-memory-group{width:27px;height:27px}.ny-memory-footer{padding-top:8px;font-size:8px}.ny-memory-result-medal{width:62px;height:62px;margin-top:17px;font-size:36px}.ny-memory-result h3{font-size:23px;margin-top:15px}.ny-memory-result-reward strong{font-size:55px}}

.new-year-gift-overlay>.new-year-memory{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:calc(100% - 16px);max-height:calc(100% - 16px);overflow:auto}.ny-memory-network{padding:8px 10px;margin:4px 0 10px;border:1px solid rgba(217,171,117,0.502);border-radius:8px;background:#482535;color:#ffd7a4;font-size:11px}.ny-memory-network[hidden]{display:none}.ny-memory-network p{margin:0 0 7px}.ny-memory-network button{border:1px solid #e3c08c;border-radius:6px;background:#edd29b;color:#502c35;padding:6px 10px;font-size:10px}

.ny-memory-burst i:nth-child(1){--petal:0;--tilt:0.0deg;--dx:110px;--dy:0px}.ny-memory-burst i:nth-child(2){--petal:1;--tilt:22.5deg;--dx:102px;--dy:42px}.ny-memory-burst i:nth-child(3){--petal:2;--tilt:45.0deg;--dx:78px;--dy:78px}.ny-memory-burst i:nth-child(4){--petal:3;--tilt:67.5deg;--dx:42px;--dy:102px}.ny-memory-burst i:nth-child(5){--petal:4;--tilt:90.0deg;--dx:0px;--dy:110px}.ny-memory-burst i:nth-child(6){--petal:5;--tilt:112.5deg;--dx:-42px;--dy:102px}.ny-memory-burst i:nth-child(7){--petal:6;--tilt:135.0deg;--dx:-78px;--dy:78px}.ny-memory-burst i:nth-child(8){--petal:7;--tilt:157.5deg;--dx:-102px;--dy:42px}.ny-memory-burst i:nth-child(9){--petal:8;--tilt:180.0deg;--dx:-110px;--dy:0px}.ny-memory-burst i:nth-child(10){--petal:9;--tilt:202.5deg;--dx:-102px;--dy:-42px}.ny-memory-burst i:nth-child(11){--petal:10;--tilt:225.0deg;--dx:-78px;--dy:-78px}.ny-memory-burst i:nth-child(12){--petal:11;--tilt:247.5deg;--dx:-42px;--dy:-102px}.ny-memory-burst i:nth-child(13){--petal:12;--tilt:270.0deg;--dx:0px;--dy:-110px}.ny-memory-burst i:nth-child(14){--petal:13;--tilt:292.5deg;--dx:42px;--dy:-102px}.ny-memory-burst i:nth-child(15){--petal:14;--tilt:315.0deg;--dx:78px;--dy:-78px}.ny-memory-burst i:nth-child(16){--petal:15;--tilt:337.5deg;--dx:102px;--dy:-42px}
/* Stable flex layout and flat card faces also work in older mobile WebViews. */
.new-year-memory{width:92%;min-width:0;max-width:560px;z-index:3;background-color:#321a2b}
.ny-memory-stats{display:flex}.ny-memory-stats>div{width:33.333%;min-width:0}
.ny-memory-board{display:flex;flex-wrap:wrap;gap:0;width:calc(100% + 8px);margin:-4px}
.ny-memory-tile{flex:0 0 calc(20% - 8px);width:calc(20% - 8px);margin:4px}
.ny-memory-sound,.ny-memory-result-medal,.ny-memory-tile.cleared .ny-memory-cleared-mark{display:flex;align-items:center;justify-content:center}
.ny-memory-chances i{margin:0 2px}.ny-memory-chances>div{gap:0}
.ny-memory-group{margin:0 5px}.ny-memory-groups{gap:0}
.ny-memory-intro-rules{gap:0}.ny-memory-intro-rules span{margin:0 7px}
.new-year-gift-overlay>.new-year-memory{width:92%;max-width:560px}
@media(max-width:700px),(pointer:coarse){
 .ny-memory-tile-inner,.ny-memory-tile.revealed .ny-memory-tile-inner{transform:none;-webkit-transform:none;transform-style:flat;transition:opacity .15s}
 .ny-memory-back,.ny-memory-front{transform:none;-webkit-transform:none;backface-visibility:visible;-webkit-backface-visibility:visible}
 .ny-memory-front{visibility:hidden;opacity:0;transition:opacity .15s}
 .ny-memory-tile.revealed .ny-memory-front{visibility:visible;opacity:1}
 .ny-memory-tile.revealed .ny-memory-back{visibility:hidden}
 .ny-memory-tile.cleared .ny-memory-tile-inner{opacity:0;transform:scale(.75)}
 .ny-memory-curtain{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(43,25,45,.97)}
 .ny-memory-front svg{filter:none}
}
